[SDL] Android fullscreen stretching
Sik the hedgehog
sik.the.hedgehog at gmail.com
Tue Mar 5 13:54:47 PST 2013
Check SDL_RenderSetLogicalSize. It takes three parameters: the
renderer handle, the width and the height. So basically do this:
SDL_RenderSetLogicalSize(renderer, 800, 600);
Then you can render like the screen is 800×600 and not worry about it
(just don't expect drawing operations to be pixel perfect due to
coordinates being scaled).
2013/3/5, Dimitris Zenios <dimitris.zenios at gmail.com>:
> i am using the rendering api to draw a texture to the screen.I want this
> texture to take the whole space of the available screen in android.If i
> create a window of 800x600 and android creates a native surface of 1024x768
> i want the window to take the whole screen.
> On Tue, Mar 5, 2013 at 11:08 PM, Sik the hedgehog <
> sik.the.hedgehog at gmail.com> wrote:
>> Can you be more specific? And more importantly, how are you drawing
>> stuff on screen: using SDL rendering functions or OpenGL?
>> 2013/3/5, Dimitris Zenios <dimitris.zenios at gmail.com>:
>> > Is there a way to have stretching of my application in order take the
>> > screen when using the android port of SDL 2?
>> SDL mailing list
>> SDL at lists.libsdl.org
More information about the SDL