Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • solarus solarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 222
    • Issues 222
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Solarus Games
  • solarussolarus
  • Issues
  • #1340

Closed
Open
Created Jan 20, 2019 by llamazing@llamazing

Mouse coordinates are not quest size when in fullscreen mode

The coordinates of passed by menu:on_mouse_pressed(button, x, y) exceed the quest size when in fullscreen mode. The documentation indicates they are supposed to be quest size coordinates.

The problem can be reproduced in my pathfinder quest. Use commit 499a505a which prints the mouse coordinates from menu:on_mouse_pressed(button, x, y) in the console.

Steps to reproduce:

  • Open the quest in the quest editor and run it
  • Press alt+enter to enter fullscreen (no need to wait for the intro sequence to finish)
  • Click in the lower right corner of the screen
  • Return to windowed mode and stop the quest
  • The coordinates are printed in the console

The quest size is 512x288 (which is a 16:9 ratio). Clicking in the lower right corner while in full screen gives me half my monitor's resolution subtract 1.

Running Solarus v1.6 on MacOS 10.14.2 with 2560x1440 resolution gives mouse coordinates of (1279, 719) in the lower right corner.

Running it on a Windows machine with 1920x1080 resolution gives (959, 539) in the lower right corner.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking