Skip to content

[SDL2 Renderer (?)] Going into fullscreen breaks touchscreen.pos offsets #450

@LittlePlanetCD

Description

@LittlePlanetCD

Before opening this issue, I ensure that...

  • I have read the FAQ and confirmed my issue is not mentioned in it.
  • I have checked both open and closed issues and confirmed this bug has not already been reported.
  • I am not asking for tech support (e.g. game closing on startup, error when trying to build, etc).
  • I am not asking for modding support or reporting a bug in a specific mod; this bug either occurs without mods enabled or is directly related to the mod loader.
  • This bug is not related to any unofficial fork/port of the decompilation, and any issues with those should be kept in the appropriate repository.

Expected Behavior

touchpos properly scales into fullscreen like with HW Rendering on

Actual Behavior

it scales way off

Steps to Reproduce

  1. build RSDKv4 with HW Renderer off
  2. open a game in windowed mode, like sonic 1
  3. use a line to draw something at the cursor, like so for the HUD: DrawSpriteScreenXY(3, touchscreen[0].xpos, touchscreen[0].ypos)
  4. watch the pos of the number corresponding to the cursor pos in windowed mode, then compare in Fullscreen

Screenshots

fullscreen example (the bugged behavior):
Image

Log File

No response

Decompilation Version

matches latest commit

Game

Sonic 1

Game Version

Mobile (Sega Forever)

Game Revision

No response

Platform

Windows 11 23H2

Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions