ikispukis

This commit is contained in:
Issac332 2026-07-05 10:10:46 +03:00
parent 97a7e7b751
commit 8aaf3f5ae5

View file

@ -1,11 +1,23 @@
# aspects, resolutions and filenames
# 4:3 - 640x480 - "_4_3"
# 16:9 - 960x540 - "_16_9"
# 16:10 - 960x600 - "_16_10"
#
# extra (not recomendated)
# 16:9 HD - 1280x720 - "_16_9_hd"
# 16:9 FHD - 1920x1080 - "_16_9_fhd"
module Graphics
RESOLUTION_ASPECT =
if Graphics.width == 1280 && Graphics.height == 720
if Graphics.width == 1920 && Graphics.height == 1080
"_16_9_fhd"
elsif Graphics.width == 1280 && Graphics.height == 720
"_16_9_hd"
elsif Graphics.width == 1920 / 2 && Graphics.height == 1080 / 2
"_16_9"
elsif Graphics.width == 640 && Graphics.height == 480
"_4_3"
else
""
end
end