429:2d7f427b2f74 | 430:36ecc8bbb75d |
---|---|
251 void SDLGui_Char(SGOBJ *dlg, int fd, int x, int y, Uint8 c) | 251 void SDLGui_Char(SGOBJ *dlg, int fd, int x, int y, Uint8 c) |
252 { | 252 { |
253 SDL_Rect sr, dr; | 253 SDL_Rect sr, dr; |
254 Uint32 bg; | 254 Uint32 bg; |
255 | 255 |
256 if (dlg[1].state & SG_SELECTED) { | 256 // if (dlg[1].state & SG_SELECTED) { |
257 bg = LCDbg1; | 257 // bg = LCDbg1; |
258 } else { | 258 // } else { |
259 bg = LCDbg0; | 259 bg = LCDbg0; |
260 } | 260 // } |
261 | 261 |
262 sr.x=fontwidth*(c%16); | 262 sr.x=fontwidth*(c%16); |
263 sr.y=fontheight*(c/16); | 263 sr.y=fontheight*(c/16); |
264 sr.w=fontwidth; | 264 sr.w=fontwidth; |
265 sr.h=fontheight; | 265 sr.h=fontheight; |
346 /* we have to look for it now here and only */ | 346 /* we have to look for it now here and only */ |
347 x += bdlg[0].x; /* add its absolute coordinates if we need to */ | 347 x += bdlg[0].x; /* add its absolute coordinates if we need to */ |
348 y += bdlg[0].y; | 348 y += bdlg[0].y; |
349 } | 349 } |
350 | 350 |
351 if (bdlg[objnum].state & SG_SELECTED) { | 351 // if (bdlg[objnum].state & SG_SELECTED) { |
352 bg = LCDbg1; | 352 // bg = LCDbg1; |
353 } else { | 353 // } else { |
354 bg = LCDbg0; | 354 bg = LCDbg0; |
355 } | 355 // } |
356 | 356 |
357 /* The root box should be bigger than the screen, so we disable the offset there: */ | 357 /* The root box should be bigger than the screen, so we disable the offset there: */ |
358 if (objnum != 0) | 358 if (objnum != 0) |
359 offset = border; | 359 offset = border; |
360 else | 360 else |