LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-18-2013, 05:07 PM   #1
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Rep: Reputation: Disabled
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.
 
Old 06-19-2013, 04:10 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
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
 
Old 06-19-2013, 05:05 PM   #3
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wildwizard View Post
Which openttd?
Last stable OpenTTD - 1.3.1

Quote:
Originally Posted by wildwizard View Post
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.
 
Old 06-19-2013, 10:26 PM   #4
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
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...

Last edited by Myk267; 06-20-2013 at 12:47 AM.
 
Old 06-19-2013, 10:59 PM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
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

Last edited by chess; 06-19-2013 at 11:01 PM.
 
Old 06-22-2013, 04:54 PM   #6
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-22-2013, 07:15 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Have you tried rebuilding OpenTTD against the updated SDL packages?
 
Old 06-22-2013, 10:10 PM   #8
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-22-2013, 10:28 PM   #9
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by elesmod View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fontconfig-compat32 package breaks VLC build Daedra Slackware 1 09-17-2009 05:23 AM
upgraded apache and php now php breaks on ' and special characters ckob Linux - Server 4 10-22-2007 09:28 PM
Preventing a Package from being Upgraded neoAKiRAz Ubuntu 3 04-25-2007 06:51 PM
xorg 6.9 breaks mouse buttons granth Slackware 10 02-04-2006 02:32 PM
SDL and mouse myrmidon Programming 2 11-11-2005 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration