Android screen size/stretch window?

I set the window size in SDL_CreateWindow of 1024x768 however when I launch app in Android Studio to my Android tablet (ASUS zenpad 3s 10) with a res of 2048x1536 (320dpi), it doesn’t automatically stretch the 1024x768 screen to fit?

I’ve tried SDL_WINDOW_FULLSCREEN / SDL_WINDOW_FULLSCREEN_DESKTOP with no luck. I’ve tried viewports, I’ve tried SDL_SetWindowSize separately. It just won’t create a “window” on the android device nor stretch it to fit.

Is it possible a layout issue - I’ve read about layoutwidth/height = fill_parent?

Thanks

Figured it out- SDL_RenderSetLogicalSize()

1 Like

That’s work for me on Android.