# HG changeset patch # User Michiel Broek # Date 1448058595 -3600 # Node ID 36ecc8bbb75d1c68bd9aec68ac0de1549b4e44cc # Parent 2d7f427b2f74c54b1d5abc3fda40233d07e9e352 LCD backlight fixed to off state. diff -r 2d7f427b2f74 -r 36ecc8bbb75d brewpanel/sdlgui.c --- a/brewpanel/sdlgui.c Fri Nov 20 22:43:50 2015 +0100 +++ b/brewpanel/sdlgui.c Fri Nov 20 23:29:55 2015 +0100 @@ -253,11 +253,11 @@ SDL_Rect sr, dr; Uint32 bg; - if (dlg[1].state & SG_SELECTED) { - bg = LCDbg1; - } else { +// if (dlg[1].state & SG_SELECTED) { +// bg = LCDbg1; +// } else { bg = LCDbg0; - } +// } sr.x=fontwidth*(c%16); sr.y=fontheight*(c/16); @@ -348,11 +348,11 @@ y += bdlg[0].y; } - if (bdlg[objnum].state & SG_SELECTED) { - bg = LCDbg1; - } else { +// if (bdlg[objnum].state & SG_SELECTED) { +// bg = LCDbg1; +// } else { bg = LCDbg0; - } +// } /* The root box should be bigger than the screen, so we disable the offset there: */ if (objnum != 0)