mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-31 00:47:39 +00:00
render: Remove the logical presentation render target.
Now we render directly to the window, scaling as appropriate. This fixes some concerns the render target introduced, like the quality of the final scaled output, how to step outside of the logical size temporarily to draw some things sharply at the native resolution, and loss of sub-pixel precision. Fixes #8736.
This commit is contained in:
parent
bf7a48cdcc
commit
54459def69
16 changed files with 293 additions and 387 deletions
|
@ -2086,8 +2086,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* scale for platforms that don't give you the window size you asked for. */
|
||||
SDL_SetRenderLogicalPresentation(screen, (int)SCREEN_WIDTH, (int)SCREEN_HEIGHT,
|
||||
SDL_LOGICAL_PRESENTATION_LETTERBOX,
|
||||
SDL_SCALEMODE_LINEAR);
|
||||
SDL_LOGICAL_PRESENTATION_LETTERBOX);
|
||||
|
||||
|
||||
title_area.w = GAMEPAD_WIDTH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue