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
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
|
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
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.
If adding more graphics modes doesn't lead anywhere, reporting the bug upstream to the allegro developers is the next step.
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
Cheers