lutris / wine

Repository containing source code for various Lutris Wine builds
Other
142 stars 23 forks source link

Madden 2008 mouse flickers on and off rapidly while moving and creates CPU load #165

Open 1ird opened 1 year ago

1ird commented 1 year ago

Madden 2008 is able to be downloaded and played for free now from archive.org

The game runs fine except for when you're moving the mouse. It flickers on an off really fast and causes the rest of the game to lag really bad. The game is playable if you can get past the menus but trying to anything in the game's menus (like franchise mode) is very difficult and frustrating.

I've had the best performance luck with Lutris/wine so I figured I'd post this here. I found a diff online where someone reported this same issue with a different game. I've tried to build the Lutris/wine source myself with the patch included but I can't get the 'make' command to complete. I'm posting the diff here in the hopes that maybe someone with more ability than me can use it.

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 186899fb16..9aaa9a18f9 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -223,6 +223,8 @@ void set_window_cursor( Window window, HCURSOR handle )
         XUnlockDisplay( gdi_display );
     }

+    if (!handle)
+      return;
     XDefineCursor( gdi_display, window, cursor );
     /* make the change take effect immediately */
     XFlush( gdi_display );