devkitPro / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
11 stars 12 forks source link

ogc: apply viewport scale in QueueGeometry #43

Closed mardy closed 6 months ago

mardy commented 6 months ago

The scale_x and scale_y parameters to QueueGeometry need to be applied to the geometry coordinates. Without this, the SDL_RenderSetLogicalSize() would not properly work on the renderer.

Note that a similar scale does not need to be applied by the backend in the other draw functions (line, fill, copyrect), because the coordinates are already scaled then.