We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL3 as of 1ca45c5, Linux, Video driver X11 ( default ) or Wayland ( by SDL_VIDEO_DRIVER ) :
SDL_VIDEO_DRIVER
testwm --scale 2 printouts are truncated to the upper left quarter of the window :
testwm --scale 2
The text was updated successfully, but these errors were encountered:
Seems like the render viewport needs to be adjusted to the scale:
SDL/test/testwm.c
Lines 228 to 233 in 1ca45c5
diff --git a/test/testwm.c b/test/testwm.c index c92cd98bb..fd792e4e5 100644 --- a/test/testwm.c +++ b/test/testwm.c @@ -230,6 +230,10 @@ static void loop(void) SDL_SetRenderViewport(renderer, NULL); SDL_GetRenderSafeArea(renderer, &viewport); + if (state->scale != 0.0f) { + viewport.w = (int)(viewport.w * state->scale); + viewport.h = (int)(viewport.h * state->scale); + } SDL_SetRenderViewport(renderer, &viewport); SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
This is just a guess. No idea if this is the intended way to fix this.
Sorry, something went wrong.
--scale
Nope, thanks but it needs to be fixed inside SDL.
Thanks!
icculus
Successfully merging a pull request may close this issue.
SDL3 as of 1ca45c5,
Linux, Video driver X11 ( default ) or Wayland ( by
SDL_VIDEO_DRIVER
) :testwm --scale 2
printouts are truncated to the upper left quarter of the window :The text was updated successfully, but these errors were encountered: