Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0024800Runner[All Projects] FunctionsPublic2016-12-01 16:292017-03-02 15:33
Reportertrvanderhoeven@gmail.com 
Assigned ToFritz 
PriorityMediumSeverityC - GeneralReproducibility100%
StatusClosedResolutionFixed 
Platform OS OS 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 Version1.4.1757
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files? file icon Device_mouse_x_to_gui.gmz [^] (1,446,310 bytes) 2016-12-01 16:30

- Relationships

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker