| 1128 | } |
| 1129 | |
| 1130 | int CALC_PIXELS_WITH_ASPECTX(int pixels) { |
| 1131 | float scr_aspect_x = ((float)GetSystemMetrics(SM_CXSCREEN)) / ((float)EDITOR_RESOLUTION_X); |
| 1132 | return (int)(scr_aspect_x * (float)(pixels)); |
| 1133 | } |
| 1134 | |
| 1135 | int CALC_PIXELS_WITH_ASPECTY(int pixels) { |
| 1136 | float scr_aspect_y = ((float)GetSystemMetrics(SM_CYSCREEN)) / ((float)EDITOR_RESOLUTION_Y); |