brewpanel/dlgBrew.c

changeset 637
21e542c15832
parent 431
b3895cd6edd3
child 638
186f0c2d3e76
equal deleted inserted replaced
636:80967361f257 637:21e542c15832
1 /***************************************************************************** 1 /*****************************************************************************
2 * Copyright (C) 2015 2 * Copyright (C) 2015-2024
3 * 3 *
4 * Michiel Broek <mbroek at mbse dot eu> 4 * Michiel Broek <mbroek at mbse dot eu>
5 * 5 *
6 * This file is part of the mbsePi-apps 6 * This file is part of the mbsePi-apps
7 * 7 *
28 #include "sdlgui.h" 28 #include "sdlgui.h"
29 #include "slcd.h" 29 #include "slcd.h"
30 #include "sockio.h" 30 #include "sockio.h"
31 31
32 32
33 #ifdef HAVE_SDL_SDL_H 33 #ifdef HAVE_SDL2_SDL_H
34 34
35 extern SDL_Surface *PAN_surface; 35 extern SDL_Surface *S_screen;
36 extern int my_shutdown; 36 extern int my_shutdown;
37 extern int debug; 37 extern int debug;
38 extern uint16_t keys; 38 extern uint16_t keys;
39 39
40 40
95 int retbut; 95 int retbut;
96 int bOldMouseVisibility; 96 int bOldMouseVisibility;
97 int nOldMouseX, nOldMouseY; 97 int nOldMouseX, nOldMouseY;
98 int x, y, w, h, cols, rows, fd; 98 int x, y, w, h, cols, rows, fd;
99 99
100 if (SDLGui_SetScreen(PAN_surface)) { 100 if (SDLGui_SetScreen(S_screen)) {
101 syslog(LOG_NOTICE, "SDLGui_SetScreen(PAN_surface) failed: %s", SDL_GetError()); 101 syslog(LOG_NOTICE, "SDLGui_SetScreen(S_screen) failed: %s", SDL_GetError());
102 return FALSE; 102 return FALSE;
103 } 103 }
104 104
105 SDL_GetMouseState(&nOldMouseX, &nOldMouseY); 105 SDL_GetMouseState(&nOldMouseX, &nOldMouseY);
106 bOldMouseVisibility = SDL_ShowCursor(SDL_QUERY); 106 bOldMouseVisibility = SDL_ShowCursor(SDL_QUERY);

mercurial