Warp mouse to center of screen, to prevent scrolling after dismissing dialog.

This commit is contained in:
Steve 2015-11-26 08:16:54 +00:00
parent cd0463c92f
commit 2bbe6a1e97
2 changed files with 2 additions and 5 deletions

View File

@ -129,10 +129,6 @@ static void logic(void)
case SHOW_STAR_SYSTEM:
doStarSystemView();
break;
case SHOW_STATS:
doStats();
break;
}
doPulses();
@ -606,6 +602,7 @@ static void handleKeyboard(void)
break;
case SHOW_STAR_SYSTEM:
setMouse(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
show = SHOW_GALAXY;
break;

View File

@ -65,7 +65,7 @@ extern void initStatsDisplay(void);
extern void updateStarSystemMissions(void);
extern StarSystem *getStarSystem(char *name);
extern int getDistance(int x1, int y1, int x2, int y2);
extern void doStats(void);
extern void setMouse(int x, int y);
extern App app;
extern Colors colors;