FS#29916 - [allegro] Can't get fullscreen display modes

Attached to Project: Community Packages
Opened by Hilton Medeiros (hilton) - Wednesday, 16 May 2012, 20:59 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 22 May 2012, 21:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Using the Arch-provided allegro, the function al_get_num_display_modes always returns only 1 fullscreen mode with the current resolution for me. I had to choose the easier way first and rebuilt the allegro package with abs and it worked fine. So I don't know where the problem was exactly...

Additional info:
allegro 5.0.6-2

Steps to reproduce:
I separately built an allegro example that shows a list of all modes supported. I attached it if you want to test it too. Build and run it with:

gcc -o dmodes main.c -lallegro_image -lallegro_font -lallegro_primitives -lallegro
./dmodes

If there is only 1 fullscreen mode available, you reproduced it.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Tuesday, 22 May 2012, 21:45 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Saturday, 19 May 2012, 02:00 GMT
Will test. Thanks for reporting.
Comment by Alexander F. Rødseth (xyproto) - Monday, 21 May 2012, 22:24 GMT
Hi. The example compiled fine. (It's not really a .tar.gz but just a .tar file, btw :) ) Thanks for providing sample code.
When running, the windowed mode and the "FS Window" worked fine, but not the fullscreen mode.
I can try rebuilding allegro and uploading that one, to see if it helps. A later version of gcc or a library may have had an effect.
Comment by Alexander F. Rødseth (xyproto) - Monday, 21 May 2012, 22:32 GMT
No change after recompiling. The fullscreen option still doesn't go fullscreen. What happens if you add more graphics modes in the X11 configuration?
If adding more graphics modes doesn't lead anywhere, reporting the bug upstream to the allegro developers is the next step.
Comment by Hilton Medeiros (hilton) - Tuesday, 22 May 2012, 00:42 GMT
Ah, after a more thorough analysis I saw that the provided library is missing some links to libraries. With namcap I get:

allegro E: Dependency libpulse detected and not included (libraries ['usr/lib/libpulse.so.0', 'usr/lib/libpulse-simple.so.0'] needed in files ['usr/lib/liballegro_audio.so.5.0.6'])
allegro E: Dependency gtk2 detected and not included (libraries ['usr/lib/libgdk-x11-2.0.so.0', 'usr/lib/libgtk-x11-2.0.so.0'] needed in files ['usr/lib/liballegro_dialog.so.5.0.6'])

So the package is missing these two dependencies (libpulse and gtk2), and by installing gtk2, it will bring xinerama and xrandr (they certainly use this for screen resizing on X) that are also dependencies. That should fix it for sure.

Cheers
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 22 May 2012, 20:12 GMT
Thanks for figuring out. Updated the package. Does it work for you now?

Cheers
Comment by Hilton Medeiros (hilton) - Tuesday, 22 May 2012, 21:25 GMT
Yes, working perfectly now. Thank you!
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 22 May 2012, 21:45 GMT
Thanks yourself. Closing bug.

Loading...