View Issue Details

IDProjectCategoryView StatusLast Update
0024800Runner[All Projects] FunctionsPublic2017-03-02 15:33
Reportertrvanderhoeven@gmail.comAssigned ToFritz 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Platform OS OS Version
Product Version 
Target VersionFixed in Version 
Summary0024800: Functions: device_mouse_x_to_gui() returning wrong coordinates
DescriptionSince upgrading from 1522 to 1757 device_mouse_x_to_gui() returns the wrong coordinates.
It now gives coordinates relative to the application_surface instead of the game window.

1. Create a view of 320x240
2. In game start event use:
display_set_gui_maximise();
var_height=window_get_height();
surface_resize(application_surface,var_height*(4/3),var_height);
3. Run game, resize the game window
4. Check to see that device_mouse_x_to_gui returns negative integers when on the left side of the application surface SAMPLE URL: https://www.dropbox.com/s/k8eu1qq4zmpj6al/Device_mouse_x_to_gui.gmz?dl=0
Additional InformationOriginal helpdesk ticket: http://help.yoyogames.com/tickets/110771
1.4 Found In1.4.1757
2.x Runtime Found In
2.x Runtime Verified In

Activities

Kevin Brown

2016-12-01 16:30

Manager  

Device_mouse_x_to_gui.gmz (1,446,310 bytes)