hedgewars/uStore.pas
changeset 3774 af0e68ca273e
parent 3773 f552c7b439fa
child 3799 5341dc5a8919
equal deleted inserted replaced
3773:f552c7b439fa 3774:af0e68ca273e
    24 
    24 
    25 
    25 
    26 var PixelFormat: PSDL_PixelFormat;
    26 var PixelFormat: PSDL_PixelFormat;
    27     SDLPrimSurface: PSDL_Surface;
    27     SDLPrimSurface: PSDL_Surface;
    28     PauseTexture,
    28     PauseTexture,
       
    29     ReadyTexture,
    29     SyncTexture,
    30     SyncTexture,
    30     ConfirmTexture: PTexture;
    31     ConfirmTexture: PTexture;
    31     cScaleFactor: GLfloat;
    32     cScaleFactor: GLfloat;
    32     SupportNPOTT: Boolean;
    33     SupportNPOTT: Boolean;
    33     Step: LongInt;
    34     Step: LongInt;
   442 HHTexture:= Surface2Tex(tmpsurf, false);
   443 HHTexture:= Surface2Tex(tmpsurf, false);
   443 SDL_FreeSurface(tmpsurf);
   444 SDL_FreeSurface(tmpsurf);
   444 
   445 
   445 InitHealth;
   446 InitHealth;
   446 
   447 
       
   448 // TODO: are those textures ever freed?
   447 PauseTexture:= RenderStringTex(trmsg[sidPaused], cYellowColor, fntBig);
   449 PauseTexture:= RenderStringTex(trmsg[sidPaused], cYellowColor, fntBig);
       
   450 ReadyTexture:= RenderStringTex(trmsg[sidReady], cYellowColor, fntBig);
   448 ConfirmTexture:= RenderStringTex(trmsg[sidConfirm], cYellowColor, fntBig);
   451 ConfirmTexture:= RenderStringTex(trmsg[sidConfirm], cYellowColor, fntBig);
   449 SyncTexture:= RenderStringTex(trmsg[sidSync], cYellowColor, fntBig);
   452 SyncTexture:= RenderStringTex(trmsg[sidSync], cYellowColor, fntBig);
   450 
   453 
   451 AddProgress;
   454 AddProgress;
   452 
   455