Lr-mame2003 - RGUI: wrong viewport info?

Hi, I’m working on some new mame overlays for Retropie (lr-mame2003). To find out actual game area size I check information in RGUI’s video settings. With lr-mame2003’s default settings: RGUI provides correct custom viewport info. If I set “integer scale” to ON, for most ROMs I checked, viewport information seems to make no sense.

As an example, with VANGUARD rom (1080p display, CEA 16 ): Integer Scale OFF (default setting) Game viewport is 810x1080: game area correctly uses full Y axis and resizes X accordingly; black bars on sides only.

Integer scale ON 896x1280 (if real it could not fit a 1080 screen): game area actually uses less than 1080 pixel on Y axis; both horizontal and vertical black bars around.

Why aren’t real viewport width and height shown ? This is quite a headache to create Overlays, as to find out the “real” game area size for each ROM a trial & error approach with “test overlay” images is required.

With Astro Blaster, on the other hand, viewport info is correct also with “integer scale” ON: 768x1024.

You can find RGUI screenshots of above mentioned settings in this thread.

Any help welcome.

Same problem here when i was editing John Merrit’s Arcade overlays to convert them from 180p to 720p.

there’s definitely some weirdness with the custom viewport code. if you turn integer scaling on/off it really confuses it.