diff options
Diffstat (limited to 'astro/xglobe/files/patch-renderer.cpp')
-rw-r--r-- | astro/xglobe/files/patch-renderer.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/astro/xglobe/files/patch-renderer.cpp b/astro/xglobe/files/patch-renderer.cpp new file mode 100644 index 000000000000..ae0ec071695c --- /dev/null +++ b/astro/xglobe/files/patch-renderer.cpp @@ -0,0 +1,26 @@ +--- renderer.cpp.orig Mon Dec 6 17:13:35 1999 ++++ renderer.cpp Sun Jan 26 09:32:22 2003 +@@ -1483,8 +1483,8 @@ + labelstring.sprintf("%s, %s %d. %d, %d:%02d %s\n" + "View pos %2.2f° %c %2.2f° %c\n" + "Sun pos %2.2f° %c %2.2f° %c", +- dt.date().dayName(dt.date().dayOfWeek()), +- dt.date().monthName(dt.date().month()), ++ dt.date().dayName(dt.date().dayOfWeek()).latin1(), ++ dt.date().monthName(dt.date().month()).latin1(), + dt.date().day(), dt.date().year(), + dt.time().hour(), dt.time().minute(), + tzname[tm->tm_isdst], +@@ -1562,9 +1562,9 @@ + + for(int i=0; i<numstars; i++) + { +- x = rand() % renderedImage->width(); +- y = rand() % renderedImage->height(); +- brightness = 150+ (rand() % 106); ++ x = random() % renderedImage->width(); ++ y = random() % renderedImage->height(); ++ brightness = 150+ (random() % 106); + p = (unsigned int *)renderedImage->scanLine(y); + p += x; + *p = qRgb(brightness, brightness, brightness); |