Warp mouse to center of screen, to prevent scrolling after dismissing dialog.
This commit is contained in:
parent
cd0463c92f
commit
2bbe6a1e97
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue