ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/sdlgui.cpp
(Generate patch)

Comparing Frodo4/Src/sdlgui.cpp (file contents):
Revision 1.2 by berlac, 2007-01-28T18:42:07Z vs.
Revision 1.3 by berlac, 2007-03-28T06:55:52Z

# Line 263 | Line 263 | void SDLGui_RefreshObj(SGOBJ *dlg, int o
263  
264    SDLGui_ObjFullCoord(dlg, objnum, &coord);
265  
266 <  SCRLOCK;
266 >  screenlock();
267    SDLGui_UpdateRect(&coord);
268 <  SCRUNLOCK;
268 >  screenunlock();
269   }
270  
271  
# Line 281 | Line 281 | void SDLGui_Text(int x, int y, const cha
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];
# Line 297 | Line 297 | void SDLGui_Text(int x, int y, const cha
297  
298      SDL_BlitSurface(fontgfx, &sr, sdlscrn, &dr);
299    }
300 <  SCRUNLOCK;
300 >  screenunlock();
301   }
302  
303  
# Line 399 | Line 399 | void SDLGui_Draw3DAround(SDL_Rect *coord
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    {
# Line 440 | Line 440 | void SDLGui_Draw3DAround(SDL_Rect *coord
440      SDL_FillRect(sdlscrn, &rect, cornercol);
441    }
442  
443 <  SCRUNLOCK;
443 >  screenunlock();
444  
445    coord->x -= width;
446    coord->y -= width;
# Line 459 | Line 459 | void SDLGui_DrawBoxAround(SDL_Rect *coor
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;
# Line 485 | Line 485 | void SDLGui_DrawBoxAround(SDL_Rect *coor
485    rect.h = width;
486    SDL_FillRect(sdlscrn, &rect, col);
487  
488 <  SCRUNLOCK;
488 >  screenunlock();
489  
490    coord->x -= width;
491    coord->y -= width;
# Line 512 | Line 512 | void SDLGui_Draw3DBox(SDL_Rect *coord,
512   {
513    SDL_Rect rect;
514  
515 <  SCRLOCK;
515 >  screenlock();
516  
517    // Draw background
518    rect.x = coord->x - widthbackground;
# Line 521 | Line 521 | void SDLGui_Draw3DBox(SDL_Rect *coord,
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines