From fed5f3a81b21f04b4c8c92d58718b0eb702a1611 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 26 Mar 2024 10:21:34 -0700 Subject: [PATCH] We no longer automatically set up a logical presentation mode --- docs/README-migration.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/README-migration.md b/docs/README-migration.md index 668d668de..1a6ee51fc 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -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.