LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgraded sdl package breaks mouse in OpenTTD (https://www.linuxquestions.org/questions/slackware-14/upgraded-sdl-package-breaks-mouse-in-openttd-4175466538/)

elesmod 06-18-2013 05:07 PM

Upgraded sdl package breaks mouse in OpenTTD
 
From Slackware64 14.0 Changelog.txt

Code:

Fri Feb  8 03:57:05 UTC 2013
(...)
patches/packages/sdl-1.2.14-x86_64-6_slack14.0.txz:  Rebuilt.
  Patched mouse clicking bug.

This version of sdl makes the mouse cursor disappear whenever I click somewhere inside OpenTTD's (it's a game) window.

When I reverted the package back to the one originally shipped with Slackware, the bug disappeared.

So I guess the new sdl fixed some clicking bug, but introduced another one.

wildwizard 06-19-2013 04:10 AM

Which openttd?

I have here 1.3.1 on current which has SDL 1.2.15 with the same patch applied and I don't see the bug you describe.

Some possibilities

1. Recompile of openttd required
2. Newer openttd required
3. Newer SDL required (any compatibility issues? only a minor version jump)
4. Some other library or even X at play

elesmod 06-19-2013 05:05 PM

Quote:

Originally Posted by wildwizard (Post 4974652)
Which openttd?

Last stable OpenTTD - 1.3.1

Quote:

Originally Posted by wildwizard (Post 4974652)
I have here 1.3.1 on current which has SDL 1.2.15 with the same patch applied and I don't see the bug you describe.

Maybe there were some other changes in 1.2.15 that fixed the issue I'm having with 1.2.14-6.

I'll just stay with SDL 1.2.14-5. It's not a big deal.

Myk267 06-19-2013 10:26 PM

For clarity's sake: Are you folks testing with the game windowed or maximized?

I know that certain SDL games were handling the mouse a bit weird in window mode but totally fine maximized (remembering OpenTTD and Battle for Wesnoth). Checking real quick, BFW seems fixed, but not OpenTTD.

Edit: Ack. I've got an old OpenTTD. I'll test the new one when I get back home...

chess 06-19-2013 10:59 PM

I don't see this issue on Slackware64-14.0 (with latest patches) and OpenTTD 1.3.1. The mouse works fine in windowed mode.

Code:

chess@slack 11:48 PM ~ $ ls /var/log/packages | grep sdl
sdl-1.2.14-x86_64-6_slack14.0
sdl-compat32-1.2.14-x86_64-5compat32
chess@slack 11:49 PM ~ $ ls /var/log/packages | grep openttd
openttd-1.3.1-x86_64-1_SBo


elesmod 06-22-2013 04:54 PM

There's no difference when running the game in windowed or fullscreen mode. The cursor disappears in both cases.

Code:

bash-4.2$ chpa sdl
sdl-1.2.14-x86_64-6_slack14.0
sdl-compat32-1.2.14-x86_64-5compat32
bash-4.2$ chpa openttd
openttd-1.3.1-x86_64-1_SBo

chpa (check package) is just my alias for ls /var/log/packages/ | grep -iE

Thanks for your reply Chess (I'm listening to Linux Reality each night, great show :)
At least we know it's something with my system and not a general issue.

I don't have the energy to look for the source of the problem, especially if I can easily bypass it by sticking with the previous build of SDL.

Thanks guys.

ReaperX7 06-22-2013 07:15 PM

Have you tried rebuilding OpenTTD against the updated SDL packages?

elesmod 06-22-2013 10:10 PM

Yes, ReaperX7.

I've had SDL updated since it was released in February and I've built OpenTTD with sbopkg only a few days ago.

However, since both you and earlier wildwizard suggested to rebuild the game, I just did the following steps:

1. slackpkg upgrade-all (which updated SDL from -5 to -6)
2. removepkg openttd
3. sbopkg -> build and install openttd

And the same thing happens.

Next I downgraded to sdl-1.2.14-x86_64-5.txz: mouse works fine.

I've even tried downloading sdl-1.2.14-x86_64-6_slack14.0.txz from another mirror, just in case the file was corrupted.

chess 06-22-2013 10:28 PM

Quote:

Originally Posted by elesmod (Post 4976789)
Thanks for your reply Chess (I'm listening to Linux Reality each night, great show :)
At least we know it's something with my system and not a general issue.

Thanks! Glad to hear it is still (somewhat) standing the test of time, although I am sure a lot of it is pretty outdated by now. :-)

This is a strange bug you are encountering and maybe it's more of a graphics driver or something. I really don't know. I'm on a stock Slackware64-14.0 on my Lenovo laptop with Intel 4000 Ivy Bridge graphics on the 3.8.4 kernel FWIW.

At least you're able to find a workaround by downgrading sdl. Post back if you ever find the answer.


All times are GMT -5. The time now is 08:35 PM.