28 lines
582 B
Plaintext
28 lines
582 B
Plaintext
///setup views()
|
|
|
|
var display_height;
|
|
display_height = display_get_height()
|
|
|
|
var display_width;
|
|
display_width = display_get_width()
|
|
|
|
|
|
|
|
if(room_height > display_height){
|
|
view_hview[view_current] = display_height;
|
|
view_hport[view_current] = display_height;
|
|
}
|
|
else{
|
|
view_hview[view_current] = room_height;
|
|
view_hport[view_current] = room_height;
|
|
}
|
|
if(room_width > display_width){
|
|
view_wview[view_current] = display_width;
|
|
view_wview[view_current] = display_width;
|
|
}
|
|
else{
|
|
view_wview[view_current] = room_width;
|
|
view_wport[view_current] = room_width;
|
|
}
|
|
|