Wintermute Engine Forum

Wintermute Engine => Bug reports => Fixed => Topic started by: HelLRaiseR on August 31, 2009, 03:17:09 PM

Title: Bug in mouse events depending on desktop resolution / full screen mode
Post by: HelLRaiseR on August 31, 2009, 03:17:09 PM
I think that there is a bug in the mouse events depending of the resolution of the game.

When the desktop has a resolution greater than the game and the player uses the options "Use desktop resolution" or "Maintain aspect ratio", the events "LeftRelease" and "LeftClick" doesn't is detect. This bug only occurs in a full screen mode, in windowed mode the game runs correctly.

I have detected this bug when I've adapt the configuration window of the "Fred" demo to my own game and Darky ask me about the slide bars control. Jose has been tested the bug and he can say more details about the testings.

I know that Jose has tried to disable the option "Use desktop resolution", but this not solve the problem becouse the option "Maintain aspect ratios can't be disabled". Also, Jose tried to propagate the events, and use some methods like LockMouseRect and others to create a workaround to solve this, but he doesn't can.

The Fred demo source is here:  http://www.algarinejoven.com/wintermute/ejemplos/FredSources.exe , in this project you can test the bug:

- Your resolution must be greater than 800 x 600 (Game resolution)
- Run the project.
- Choose Use desktop resolution or Maintain aspect ratio (Used desktop resolution can be marked to yes in the Project manager).
- Don't choose "run in window"
- When the game is running press ESC key
- Choose "Opciones" in the option menu.
- Try to change any sound volume
- Uack! The game is hanged


Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: HelLRaiseR on August 31, 2009, 03:22:00 PM
The temporary solution is that the slide control can't be interactive, we use two buttons (+ and -) to modify the volume, and the button of the slide will be changed for a indicator.
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Mnemonic on August 31, 2009, 03:54:18 PM
I'm aware of this, thanks.
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Jose on September 01, 2009, 11:08:27 AM
Hi Mnemonic,

are you planning to release a patch to solve this error?

Thanks a lot.
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Weraustinne on September 01, 2009, 12:03:14 PM
Hi Mnemonic,

are you planning to release a patch to solve this error?

Thanks a lot.

   
Mnemonic told me on IRC, "I am working on the new version", so just wait and have patience :)
 
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Jose on September 02, 2009, 09:26:03 AM
Hi Mnemonic,

are you planning to release a patch to solve this error?

Thanks a lot.

   
Mnemonic told me on IRC, "I am working on the new version", so just wait and have patience :)
 

Oh! I have patience but we can't just wait till new version release (overall if using the new version implies deep changes in the current code we have). Te reason for asking about a patch is in order to decide if we can mantain the actual interface or if we'll have to redesign it.  ;)

I'm a great admirer of Mnemonic's work and I don't want to appear impatience or that I want put preassure on him. I only ask for some info in order to make our own decisions about the progress of our game...
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Weraustinne on September 02, 2009, 01:01:37 PM
Hi Mnemonic,

are you planning to release a patch to solve this error?

Thanks a lot.



   
Mnemonic told me on IRC, "I am working on the new version", so just wait and have patience :)
 

Oh! I have patience but we can't just wait till new version release (overall if using the new version implies deep changes in the current code we have). Te reason for asking about a patch is in order to decide if we can mantain the actual interface or if we'll have to redesign it.  ;)

I'm a great admirer of Mnemonic's work and I don't want to appear impatience or that I want put preassure on him. I only ask for some info in order to make our own decisions about the progress of our game...

I also need to further development of my game a bugfix relase of WME 1.xx
Therefore I write to Mnemonic on IRC and he said, I am working on WME 2 and the new version of WME 1.x,
New version of WME 1.X should be fully compatible with version 1.8.10, it will only contain bug fixes (and maybe something new), but not rewritten the entire code.
(The entire code will be overwritten in WME 2 (WME 2 is not compatible with 1.x), but new WME 1.x version is fully compatible with 1.8.10, so again just wait.:)

I said to Mnemonic, Please discontinue work on WME2 and please now work  on the last (bugfix) version of WME 1, and after that continue works on WME 2, but I think, Mnemonic is now angry at me:)

WME2 is still at an early stage of development and will take a long time and lot's of hard work to go to the final stage.
Another problem is - WME2 is not backward compatible with WME1, so I understand you and I want too a new version from WME 1.X "series" (which corrected all serious bugs), but...    decision is at Mnemonic. 
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: metamorphium on September 02, 2009, 01:26:58 PM
well, source code has been released to public, you can fix the problems easily yourself, no?  >:D
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Weraustinne on September 02, 2009, 02:18:23 PM
well, source code has been released to public, you can fix the problems easily yourself, no?  >:D


Yeah, many thanks for your help ;D
Are you want personal aircraft?
Buy it!  ;D
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Spellbreaker on September 02, 2009, 05:09:08 PM
Please be aware that Mnem is doing this all for nearly nothing, zero, zip, nada, nix. So right now there are no serious bugs in WME which can't be worked around, so I personally simply would like that he drops 1.8 after the next release and focus on wme 2 for a while.

greets,

spellbreaker
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Mnemonic on September 02, 2009, 05:13:33 PM
I fixed the bug and also a similar bug in Game.LockMouseRect().
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: HelLRaiseR on September 02, 2009, 07:51:01 PM
Peace and Love  ::thumbup  ;) ;)   ;D

Thanks Mnemonic
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Jose on September 03, 2009, 08:36:07 AM
Great work Mnemonic!!! Thanks a lot!!!
Title: Re: Bug in mouse events depending on desktop resolution / full screen mode
Post by: Jose on September 05, 2009, 10:08:59 AM
I think that there is a bug in the mouse events depending of the resolution of the game.

When the desktop has a resolution greater than the game and the player uses the options "Use desktop resolution" or "Maintain aspect ratio", the events "LeftRelease" and "LeftClick" doesn't is detect. This bug only occurs in a full screen mode, in windowed mode the game runs correctly.

I have detected this bug when I've adapt the configuration window of the "Fred" demo to my own game and Darky ask me about the slide bars control. Jose has been tested the bug and he can say more details about the testings.

I know that Jose has tried to disable the option "Use desktop resolution", but this not solve the problem becouse the option "Maintain aspect ratios can't be disabled". Also, Jose tried to propagate the events, and use some methods like LockMouseRect and others to create a workaround to solve this, but he doesn't can.

The Fred demo source is here:  http://www.algarinejoven.com/wintermute/ejemplos/FredSources.exe , in this project you can test the bug:

- Your resolution must be greater than 800 x 600 (Game resolution)
- Run the project.
- Choose Use desktop resolution or Maintain aspect ratio (Used desktop resolution can be marked to yes in the Project manager).
- Don't choose "run in window"
- When the game is running press ESC key
- Choose "Opciones" in the option menu.
- Try to change any sound volume
- Uack! The game is hanged


It seems to work perfect with new 1.8.11 version. Great work as always Mnemonic! Thanks a lot for your effort and support!