brewpanel/sdlgui.c

changeset 415
d9b7e0705f56
parent 412
f1a042a59b61
child 420
644a6106d712
--- a/brewpanel/sdlgui.c	Sun Nov 08 17:55:50 2015 +0100
+++ b/brewpanel/sdlgui.c	Sun Nov 08 20:30:04 2015 +0100
@@ -223,18 +223,20 @@
 /*
  * Draw the cursor
  */
-void SDLGui_Cursor(int x, int y)
+void SDLGui_Cursor(int x, int y, int on, int blink)
 {
     SDL_Rect	dr;
     Uint32      color = SDL_MapRGB(pSdlGuiScrn->format, 53, 59, 61);
 
-    dr.x=x;
-    dr.y=y;
-    dr.w=fontwidth;
-    dr.h=fontheight;
+    if (on) {
+    	dr.x = x;
+    	dr.y = y + fontheight - 2;
+    	dr.w = fontwidth;
+    	dr.h = 2;
 
-    SDL_FillRect(pSdlGuiScrn, &dr, color);
-    SDL_UpdateRect(pSdlGuiScrn, x, y, fontwidth, fontheight);
+    	SDL_FillRect(pSdlGuiScrn, &dr, color);
+    	SDL_UpdateRect(pSdlGuiScrn, x, y, fontwidth, fontheight);
+    }
 }
 
 

mercurial