263 |
|
|
264 |
|
SDLGui_ObjFullCoord(dlg, objnum, &coord); |
265 |
|
|
266 |
< |
SCRLOCK; |
266 |
> |
screenlock(); |
267 |
|
SDLGui_UpdateRect(&coord); |
268 |
< |
SCRUNLOCK; |
268 |
> |
screenunlock(); |
269 |
|
} |
270 |
|
|
271 |
|
|
281 |
|
|
282 |
|
SDL_SetColors(fontgfx, col, 1, 1); |
283 |
|
|
284 |
< |
SCRLOCK; |
284 |
> |
screenlock(); |
285 |
|
for (i = 0 ; txt[i] != 0 ; i++) |
286 |
|
{ |
287 |
|
c = txt[i]; |
297 |
|
|
298 |
|
SDL_BlitSurface(fontgfx, &sr, sdlscrn, &dr); |
299 |
|
} |
300 |
< |
SCRUNLOCK; |
300 |
> |
screenunlock(); |
301 |
|
} |
302 |
|
|
303 |
|
|
399 |
|
Uint32 downrightcol = SDLGui_MapColor(downrightc); |
400 |
|
Uint32 cornercol = SDLGui_MapColor(cornerc); |
401 |
|
|
402 |
< |
SCRLOCK; |
402 |
> |
screenlock(); |
403 |
|
|
404 |
|
for ( i = 1 ; i <= width ; i++) |
405 |
|
{ |
440 |
|
SDL_FillRect(sdlscrn, &rect, cornercol); |
441 |
|
} |
442 |
|
|
443 |
< |
SCRUNLOCK; |
443 |
> |
screenunlock(); |
444 |
|
|
445 |
|
coord->x -= width; |
446 |
|
coord->y -= width; |
459 |
|
SDL_Rect rect; |
460 |
|
Uint32 col = SDLGui_MapColor(color); |
461 |
|
|
462 |
< |
SCRLOCK; |
462 |
> |
screenlock(); |
463 |
|
|
464 |
|
rect.x = coord->x - width; |
465 |
|
rect.y = coord->y - width; |
485 |
|
rect.h = width; |
486 |
|
SDL_FillRect(sdlscrn, &rect, col); |
487 |
|
|
488 |
< |
SCRUNLOCK; |
488 |
> |
screenunlock(); |
489 |
|
|
490 |
|
coord->x -= width; |
491 |
|
coord->y -= width; |
512 |
|
{ |
513 |
|
SDL_Rect rect; |
514 |
|
|
515 |
< |
SCRLOCK; |
515 |
> |
screenlock(); |
516 |
|
|
517 |
|
// Draw background |
518 |
|
rect.x = coord->x - widthbackground; |
521 |
|
rect.h = coord->h + (widthbackground * 2); |
522 |
|
SDL_FillRect(sdlscrn, &rect, SDLGui_MapColor(backgroundc)); |
523 |
|
|
524 |
< |
SCRUNLOCK; |
524 |
> |
screenunlock(); |
525 |
|
|
526 |
|
// Update coords |
527 |
|
coord->x -= widthbackground; |