--- hatari/src/includes/statusbar.h 2019/04/09 08:53:18 1.1.1.3 +++ hatari/src/includes/statusbar.h 2019/04/09 08:59:29 1.1.1.6 @@ -7,8 +7,10 @@ #ifndef HATARI_STATUSBAR_H #define HATARI_STATUSBAR_H -#include -#include "main.h" +#include + +/* must correspond to max value returned by Statusbar_GetHeightForSize() */ +#define STATUSBAR_MAX_HEIGHT (2*(2*8+2)) typedef enum { DRIVE_LED_A, @@ -34,7 +36,7 @@ extern void Statusbar_Init(SDL_Surface * extern void Statusbar_UpdateInfo(void); extern void Statusbar_AddMessage(const char *msg, Uint32 msecs); extern void Statusbar_OverlayBackup(SDL_Surface *screen); -extern void Statusbar_Update(SDL_Surface *screen); +extern SDL_Rect* Statusbar_Update(SDL_Surface *screen, bool do_update); extern void Statusbar_OverlayRestore(SDL_Surface *screen); #endif /* HATARI_STATUSBAR_H */