EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: john iv on 09 November 2024, 18:25

Title: Checks to prevent offscreen UI placement
Post by: john iv on 09 November 2024, 18:25
Hi Roman, I just hit an interesting issue in clrmamepro that cropped up a long time ago w/ my front end we had to code around.
I'm not sure what produced it, perhaps some combo of windows key + arrows with snap, but clrmame when it saved out to settings.xml put a large negative number in its UI position settings.  The next time the app was run, it couldn't be displayed on any of my multiple screens and you couldn't 'get to it' w/ alt-tab etc.
I had to kill the UI portion of settings.xml and restart.  So maybe you need an extra check to prevent incorrect/negative co-ordinates from being used.  This is my regular working section, I think <right> ended up like -3544 or something:

<Clrmame>
      <UI>
         <window>
            <right>2569</right>
            <top>0</top>
            <left>1271</left>
            <bottom>1401</bottom>
         </window>
         <activeTab>0</activeTab>
      </UI>
   </Clrmame>
Title: Re: Checks to prevent offscreen UI placement
Post by: Roman on 10 November 2024, 15:53
ok, I put it on the todo list