Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Display Properties
- ideal_width = 0;
- ideal_height = 640;
- aspect_ratio = display_get_width()/display_get_height();
- ideal_width = round(ideal_height/aspect_ratio);
- //check for odd numbers
- if(ideal_width & 1) {
- ideal_width++;
- }
- for (var i = 1; i <= room_last; i++) {
- if(room_exists(i)) {
- room_set_view(i,0,true,0,0,ideal_width,ideal_height,0,0,ideal_width,ideal_height,0,0,0,0,-1);
- room_set_view_enabled(i,true);
- }
- }
- surface_resize(application_surface,ideal_width , ideal_height);
- window_set_size(ideal_width,ideal_height);
- room_goto(room_next(room));
- ideal_width = round(ideal_height/aspect_ratio);
- ideal_height = round(ideal_width/aspect_ratio);
Add Comment
Please, Sign In to add comment