Fix disappearing text on chart screen

This commit is contained in:
Kevin Anthoney 2014-07-27 22:14:50 +01:00
parent aef9e99172
commit 79aea50736
2 changed files with 3 additions and 2 deletions

View File

@ -7594,6 +7594,7 @@ static GLfloat sBaseMass = 0.0;
- (void) setGuiToLongRangeChartScreen
{
OOGUIScreenID oldScreen = gui_screen;
[[UNIVERSE gui] clearAndKeepBackground:gui_screen != GUI_SCREEN_LONG_RANGE_CHART];
gui_screen = GUI_SCREEN_LONG_RANGE_CHART;
target_chart_zoom = CHART_MAX_ZOOM;
[self setGuiToChartScreenFrom: oldScreen];
@ -7602,6 +7603,7 @@ static GLfloat sBaseMass = 0.0;
- (void) setGuiToShortRangeChartScreen
{
OOGUIScreenID oldScreen = gui_screen;
[[UNIVERSE gui] clearAndKeepBackground:gui_screen != GUI_SCREEN_SHORT_RANGE_CHART];
gui_screen = GUI_SCREEN_SHORT_RANGE_CHART;
[self setGuiToChartScreenFrom: oldScreen];
}
@ -7623,7 +7625,7 @@ static GLfloat sBaseMass = 0.0;
// GUI stuff
{
[gui clearAndKeepBackground:!guiChanged];
//[gui clearAndKeepBackground:!guiChanged];
NSString *gal_key = [NSString stringWithFormat:@"long-range-chart-title-%d", galaxy_number];
if ([[UNIVERSE descriptions] valueForKey:gal_key] == nil)
{

View File

@ -3298,7 +3298,6 @@ static NSTimeInterval time_last_frame;
if (!switching_chart_screens)
{
switching_chart_screens = YES;
[gui clearAndKeepBackground: YES];
if (gui_screen == GUI_SCREEN_SHORT_RANGE_CHART || (gui_screen == GUI_SCREEN_SYSTEM_DATA && showingLongRangeChart))
{
if (gui_screen == GUI_SCREEN_SHORT_RANGE_CHART)