diff --git a/alienblaster/AppSettings.cfg b/alienblaster/AppSettings.cfg index f2058cc35..82d60f457 100644 --- a/alienblaster/AppSettings.cfg +++ b/alienblaster/AppSettings.cfg @@ -1,6 +1,6 @@ AppName="Alien Blaster" AppFullName=de.schwardtnet.alienblaster -ScreenOrientation=v +ScreenOrientation=h AppDataDownloadUrl="http://sites.google.com/site/xpelyax/Home/alienblaster110_data.zip?attredirects=0&d=1" DownloadToSdcard=n SdlVideoResize=y diff --git a/alienblaster/project/AndroidManifest.xml b/alienblaster/project/AndroidManifest.xml index 5e4288468..0373b4868 100644 --- a/alienblaster/project/AndroidManifest.xml +++ b/alienblaster/project/AndroidManifest.xml @@ -6,7 +6,7 @@ diff --git a/alienblaster/project/jni/sdl/src/video/SDL_video.c b/alienblaster/project/jni/sdl/src/video/SDL_video.c index 3abfb4676..94f6a0a68 100644 --- a/alienblaster/project/jni/sdl/src/video/SDL_video.c +++ b/alienblaster/project/jni/sdl/src/video/SDL_video.c @@ -2683,10 +2683,10 @@ SDL_RenderCopy(SDL_Texture * texture, const SDL_Rect * srcrect, SDL_Rect real_srcrect; SDL_Rect real_dstrect; #if SDL_VIDEO_RENDER_RESIZE - int realW = window->display->current_mode.w; - int realH = window->display->current_mode.h; - int fakeW = window->w; - int fakeH = window->h; + int realW; + int realH; + int fakeW; + int fakeH; #endif CHECK_TEXTURE_MAGIC(texture, -1); @@ -2739,6 +2739,10 @@ SDL_RenderCopy(SDL_Texture * texture, const SDL_Rect * srcrect, } #if SDL_VIDEO_RENDER_RESIZE + realW = window->display->current_mode.w; + realH = window->display->current_mode.h; + fakeW = window->w; + fakeH = window->h; if( fakeW > realW || fakeH > realH ) { real_dstrect.x = real_dstrect.x * realW / fakeW; real_dstrect.y = real_dstrect.y * realH / fakeH;