Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1ird opened this issue Apr 11, 2023 · 0 comments

Comments

@1ird
Copy link

1ird commented Apr 11, 2023

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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant