hedgewars/uStore.pas
changeset 6415 af2047bb4f70
parent 6394 f0a9042e7387
parent 6328 d14adf1c7721
child 6453 11c578d30bd3
equal deleted inserted replaced
6414:8474b7fa84d6 6415:af2047bb4f70
   289            (((cReducedQuality and rqKillFlakes) = 0) or (Theme = 'Snow') or (Theme = 'Christmas') or ((not (ii in [sprFlake, sprSDFlake])))) and
   289            (((cReducedQuality and rqKillFlakes) = 0) or (Theme = 'Snow') or (Theme = 'Christmas') or ((not (ii in [sprFlake, sprSDFlake])))) and
   290            ((cCloudsNumber > 0) or (ii <> sprCloud)) and
   290            ((cCloudsNumber > 0) or (ii <> sprCloud)) and
   291            ((vobCount > 0) or (ii <> sprFlake)) then
   291            ((vobCount > 0) or (ii <> sprFlake)) then
   292         begin
   292         begin
   293             if AltPath = ptNone then
   293             if AltPath = ptNone then
   294                 if ii in [sprHorizont, sprHorizontL, sprHorizontR, sprSky, sprSkyL, sprSkyR, sprChunk] then // FIXME: hack
   294                 if ii in [sprHorizont, sprHorizontL, sprHorizontR, sprSky, sprSkyL, sprSkyR, sprChunk, sprFireButton] then // FIXME: hack
   295                     begin
   295                     begin
   296                     if not reload then
   296                     if not reload then
   297                         begin
   297                         begin
   298                         tmpsurf:= LoadImage(UserPathz[Path] + '/' + FileName, ifAlpha or ifTransparent);
   298                         tmpsurf:= LoadImage(UserPathz[Path] + '/' + FileName, ifAlpha or ifTransparent);
   299                         if tmpsurf = nil then tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent)
   299                         if tmpsurf = nil then tmpsurf:= LoadImage(Pathz[Path] + '/' + FileName, ifAlpha or ifTransparent)
  1006     // these values in x and y make the window appear in the center
  1006     // these values in x and y make the window appear in the center
  1007     x:= SDL_WINDOWPOS_CENTERED_MASK;
  1007     x:= SDL_WINDOWPOS_CENTERED_MASK;
  1008     y:= SDL_WINDOWPOS_CENTERED_MASK;
  1008     y:= SDL_WINDOWPOS_CENTERED_MASK;
  1009     flags:= SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN;
  1009     flags:= SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN;
  1010 
  1010 
  1011 {$IFDEF IPHONEOS}
  1011 {$IFDEF MOBILE}
  1012     // make the sdl window appear on the second monitor when present
  1012     // make the sdl window appear on the second monitor when present
  1013     x:= x or (SDL_GetNumVideoDisplays() - 1);
  1013     x:= x or (SDL_GetNumVideoDisplays() - 1);
  1014     y:= y or (SDL_GetNumVideoDisplays() - 1);
  1014     y:= y or (SDL_GetNumVideoDisplays() - 1);
  1015 
  1015 
  1016     SDL_SetHint('SDL_IOS_ORIENTATIONS','LandscapeLeft LandscapeRight');
  1016     SDL_SetHint('SDL_IOS_ORIENTATIONS','LandscapeLeft LandscapeRight');