i made the game scale pixel perfect, but the black bars on the sides are moved:
i followed this guide. The resolution is 640 x 480. I really dont know what im doing wrong
obj_system create event:
draw gui end event:
i followed this guide. The resolution is 640 x 480. I really dont know what im doing wrong
obj_system create event:
Code:
//Resize
application_surface_draw_enable(false);
window_set_fullscreen(true);
global.MonitorW = display_get_width();
global.MonitorH = display_get_height();
global.Xoffset = (global.MonitorW - 640) / 2;
global.Yoffset = (global.MonitorH - 480) / 2;
if(global.MonitorW >= 1280 && global.MonitorH >= 960){
surface_resize(application_surface,1280,960)
global.Xoffset = (global.MonitorW - 1280)/2;
global.Yoffset = (global.MonitorH - 960)/2;
}
Code:
//Resize screen
draw_surface_ext(application_surface,global.Xoffset,global.Yoffset,1,1,0,c_white,1);