Skip to content

Commit

Permalink
We no longer automatically set up a logical presentation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 26, 2024
1 parent 823ab13 commit fed5f3a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/README-migration.md
Expand Up @@ -1088,13 +1088,6 @@ to decide for you.
The SDL_RENDERER_TARGETTEXTURE flag has been removed, all current renderers support target texture functionality.
When a renderer is created, it will automatically set the logical size to the size of
the window in points. For high DPI displays, this will set up scaling from points to
pixels. You can disable this scaling with:
```c
SDL_SetRenderLogicalPresentation(renderer, 0, 0, SDL_LOGICAL_PRESENTATION_DISABLED, SDL_SCALEMODE_NEAREST);
```

Mouse and touch events are no longer filtered to change their coordinates, instead you
can call SDL_ConvertEventToRenderCoordinates() to explicitly map event coordinates into
the rendering viewport.
Expand Down

0 comments on commit fed5f3a

Please sign in to comment.