Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: GroovyMAME 0.287 - Switchres 2.22b  (Read 423328 times)

0 Members and 14 Guests are viewing this topic.

arc11

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:Yesterday at 01:16:50 pm
  • I want to build my own arcade controls!
Re: GroovyMAME 0.287 - Switchres 2.22b
« Reply #520 on: Yesterday at 01:15:54 pm »
Last year while I was searching for a workaround, I found odd in the lines :

    // determine the scale factor
-   float scale_factor = target_font_height() * scale / one_to_one_line_height;
+   float scale_factor = std::min(target_pixel_height / float(raw_font_pixel_height) / options().font_rows(),
+                        target_pixel_width / float(raw_font_pixel_height) / options().font_rows());

that a division is made between
 target_pixel_width
and raw_font_pixel_height

if I understand correctly this expression the second line should be
target_pixel_width / float(raw_font_pixel_width) / options().font_collumns()

I don't know if  raw_font_pixel_width and font_collumns exist, i just put meaningful names

just an idea....