Is there a way to store a game's current resolution's X/Y values to variables?

Strange question, with a bit of "why would you want that", but I've got a thing I'd love to do with it if it's even physically possible :LZSsmile: :LZSsmile: :LZSsmile:
Try Control Variables > Script:
  • Graphics.boxWidth (width in px)
  • Graphics.boxHeight (height in px)
Try Control Variables > Script:
  • Graphics.boxWidth (width in px)
  • Graphics.boxHeight (height in px)
Unreal!!

I never get tired of thanking you @caethyril :LZSsmile: :LZSsmile: :LZSsmile:

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-store-a-games-current-resolutions-x-y-values-to-variables.136886/