Mert
Member
Hi. I was testing scaling and orientation settings of my app for different targets. I define #macro resW and #macro resH in two fields (see the following code). >> In the red label on script window.
The GMS2 IDE gives me the error : macro resW already exists. My app only defines them in one condition, it means that I do not re-define them afterwards.
My app runs on both Android and Web with no issue, but my question is would this create any issue, or am I coding it in a bad way ?
The GMS2 IDE gives me the error : macro resW already exists. My app only defines them in one condition, it means that I do not re-define them afterwards.
My app runs on both Android and Web with no issue, but my question is would this create any issue, or am I coding it in a bad way ?
Code:
case 0: //Android
device_mouse_dbclick_enable(false);
display_set_ui_visibility(1024);
os_powersave_enable(false);
//Set the display size
#macro resW 720
#macro resH 1280
//Resize GUI
display_set_gui_size(resW,resH);
break;
case 1: ///On Browser
#macro resW browser_width
#macro resH browser_height
break;