Hello everybody, I have question: what does this function relate on? I mean when I resize my window(here is the code of the resize):
the mouse appears to be drawn in the wrong place using this function, some screenshots(sorry for the gui elements, they will be resized later)
And when I run it fullscreen it is drawn in apppropriate way.
GML:
surface_resize(application_surface,VIEW_W,VIEW_H)
window_set_size(VIEW_W,VIEW_H);
view_wport[0]=VIEW_W;
view_hport[0]=VIEW_H;
camera_set_view_size(global.oCamera.cam,VIEW_W,VIEW_H);
alarm[0]=1;
//Alarm[0]
window_center();
display_set_gui_size(window_get_width(),window_get_height())
global.GUI_W=display_get_gui_width()
global.GUI_H=display_get_gui_height()
And when I run it fullscreen it is drawn in apppropriate way.
Attachments
-
178.9 KB Views: 5
-
168.5 KB Views: 5
-
168.6 KB Views: 2