Build Your Own Arcade Controls Forum

Front End Support => MaLa Frontend => Topic started by: Yeltsew7 on May 02, 2014, 11:05:48 pm

Title: Broken Layout After Reolution Change
Post by: Yeltsew7 on May 02, 2014, 11:05:48 pm
After I load an emulator that changes my resolution, my layout gets messed up like the picture attached.  That is all I can figure out so far.  I am using Ootake to emulate PC Engine, and as far as I know that is the only emulator I am using SO FAR that changes my resolution.  I plan to use GroovyMAME also, which will change my resolution.  The layout works fine before I select the emulator, but when I exit Ootake, it looks like pic related.  I am running it on my laptop right now, which is 1366x768 natively, so maybe that's the problem.  I am using MaLa 1.82 Beta.
Title: Re: Broken Layout After Reolution Change
Post by: Malenko on May 02, 2014, 11:09:28 pm
is your layout made for a specific resolution or will it scale?
Title: Re: Broken Layout After Reolution Change
Post by: EssexMame on May 03, 2014, 05:18:30 am
watching with interest. I have a similar problem on exiting some emulators (not all). I "fixed" by using setting in Mala (in options - GUI - Game Start/Quit and tick Reorder Layout after game quit). This sort of fixes it by shunting it back BUT the Start pic and so on for the next game are all misaligned.

I've stopped looking for now, I'm actually concentrating on the woodwork and just Mame for now - I will come back to the Emulators, and this problem so hope you find a good solution (or are happy with this "fix"). There is something on change Desktop resolution in Mala options also - perhaps something there will help?
Title: Re: Broken Layout After Reolution Change
Post by: Yeltsew7 on May 03, 2014, 08:38:30 am
is your layout made for a specific resolution or will it scale?
I'm not sure, how can I check?

EDIT:  It is scaling 4:3, which is a problem, since my laptop is 16:9.  When I start the emulator, it changes to 640x480, which is a 4:3 resolution.  When it changes back it must not like 16:9.  Checking "Reorder Layout" fixes it.
Title: Re: Broken Layout After Reolution Change
Post by: cyb on July 12, 2014, 03:43:57 am
I had the same problem, and using the "reorder layout" option wasn't working. I found this program called winsize2 http://sourceforge.net/projects/winsize2/ (http://sourceforge.net/projects/winsize2/)
you can configure it to automatically resize any window after a resolution switch. It works great.
Title: Re: Broken Layout After Reolution Change
Post by: empardopo on July 13, 2014, 10:36:37 am
In my program AllInOneFYC I put an option to be able change the windows resolution pushing a button! I need betatesters to check it.
You could test it and tell me if works fine or not.

Thanks in advance!
Title: Re: Broken Layout After Reolution Change
Post by: BadMouth on July 14, 2014, 04:13:18 pm
How are you exiting the emulator? 
This usually happens when the process is just killed instead of shut down properly.
In the world of emulation though, that isn't always an option.
It shouldn't be an issue with MAME.

I had this issue with some of the Taito Type X games and made an autohotkey script to reset the desktop resolution before returning to Mala.
Title: Re: Broken Layout After Reolution Change
Post by: theelf on July 21, 2014, 05:45:49 am
Hi!!

At least in my PC, i discover that MALA and OpenGL are not good friends, but deppend emulator, same problem with ddraw i think


For example,  magicengine


I use 1280x240 for magicengine, and 640x240 for MALA.  If i use opengl in magicengine, when i came back to mala, is a mess
If i use ddraw, no problem at all

retroarch, same problem, opengl a mess, D3D OK

mednafen exactly same...

Dosbox same problem,  ddraw/surface/d3d OK, OpenGL bad


scummvm, same problem, even if i dont use OpenGL... maybe is a SDL incompatibility with MALA? because dosbox is very problematic too, even on surface

For example, in scummvm, im forced to have same resolution, in layout and scummvm,  640x200



Mala + OpenGL + different resolution mala/emulator = messed layout



Greetings




Title: Re: Broken Layout After Reolution Change
Post by: empardopo on July 23, 2014, 01:18:51 am
The best test is:
a) to do a controlled close of your emulator without using external program like AllInOneFYC, closemul,ect. Use your mouse and close your emulator to check the resolution of MALA when you come back.
b) to do the same but now using closeemul or another similar programs.

I think that this problem occurs when you kill the emulator processes without doing a controlled close.

Greetings!
Title: Re: Broken Layout After Reolution Change
Post by: theelf on July 23, 2014, 05:55:35 am
The best test is:
a) to do a controlled close of your emulator without using external program like AllInOneFYC, closemul,ect. Use your mouse and close your emulator to check the resolution of MALA when you come back.
b) to do the same but now using closeemul or another similar programs.

I think that this problem occurs when you kill the emulator processes without doing a controlled close.

Greetings!


Hi there! greetings

I never kill any process,  i always quit from the normal way emulator offer to do, normally with CLOSE, but in some cases, with internal command, like for example, DOSBox, CTRL-F9

I assigned a button in the pad for quit emulators, then i can assign any key conbination, thats why i know i always quit in a good way... (or at least i think so)


In the case of scummvm for example, i did not assign any button to quit, just go to menu with F5, and close from normal way... and scummvm is very difficult with mala, or I use same resolution in scummvma and mala, or a mess came... :)