Active Topics

 



Notices


Reply
Thread Tools
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#1
Latest Allegro 4 (version 4.4.2) is on extras-devel. It is not working very good, so if somebody had any ideas for it...

Wiki: http://wiki.maemo.org/Allegro

Issues:
*In fullscreen Allegro grabs the keyboard
'Grabs' = system wide shortcuts e.g. ctrl+backspace nor screenshots with ctrl+shift+p are not working.
These are working in windowed mode.

*Sounds use too much processing power
Rename/remove file /usr/lib/allegro/4.4.2/alleg-alsadigi.so to disable sounds.

*Fullscreen is not fullscreen. Window manager's top-panel is still visible, but not focusable.

*Can't start from menu, because started application stay bottom than desktop -> nobody has focus.

Package name is liballeg4.4, and relating dev package is liballeg4.4-dev.
Attached Images
 

Last edited by AapoRantalainen; 2011-07-14 at 13:34. Reason: added wiki
 

The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post:
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#2
I think you missed a bit

Allegro 4 and Allegro 5 are cross-platform, libraries mainly aimed at video game and multimedia programming. They handle common, low-level tasks such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. and generally abstracting away the underlying platform. However, Allegro is not a game engine: you are free to design and structure your program as you like.
http://alleg.sourceforge.net
__________________
May the source be with you.
 

The Following 3 Users Say Thank You to jedi For This Useful Post:
Posts: 298 | Thanked: 197 times | Joined on Dec 2009 @ Norway
#3
If this is working properly, we might get Zelda Classic running under Maemo, because there is a Pandora port. (It requires Allegro.)
 
Posts: 1,397 | Thanked: 2,126 times | Joined on Nov 2009 @ Dublin, Ireland
#4
I have ported the game Head Over Heels and uploaded it to extras.

It also suffers the same problems with performance and fullscreen.
 

The Following 2 Users Say Thank You to ivgalvez For This Useful Post:
Posts: 1,397 | Thanked: 2,126 times | Joined on Nov 2009 @ Dublin, Ireland
#5
I've seen in changelog that a similar "keyboard focus lost" problem was fixed for OSX in version 4.4.2. See here eighth line.

Maybe the same fix is useful for Maemo, though I haven't checked the code myself.
 

The Following 2 Users Say Thank You to ivgalvez For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#6
Git tree:
Code:
git clone git://alleg.git.sourceforge.net/gitroot/alleg/allegro
Relevant branch
Code:
git checkout origin/4.4
git log
and search:
Code:
commit 7b758129deb21c7d4afd666dc9c7c9213dc8846f
Author: Evert Glebbeek <eglebbk@users.sourceforge.net>
Date:   Tue Nov 9 14:10:56 2010 +0000

    Peter Johansson (X-G) fixed a problem with keyboard focus being lost on OS
    X when switching from windowed mode to fullscreen mode.

commit 2f1cf2d18589b93acbe06e73ca79d226c42a62c3
Author: Peter Wang <tjaden@users.sourceforge.net>
Date:   Mon Nov 8 22:28:36 2010 +0000

    alsa_rawmidi_init could return success on failure.
    Reported by Nicolas Kaiser (bug #3104614).
What was happened:
Code:
git diff 2f1cf2d18589b93acbe06e73ca79d226c42a62c3 7b758129deb21c7d4afd666dc9c7c9213dc8846f
->
Code:
diff --git a/src/macosx/qzfull.m b/src/macosx/qzfull.m
index 513d36b..7df89ad 100644
--- a/src/macosx/qzfull.m
+++ b/src/macosx/qzfull.m
@@ -254,6 +254,11 @@ static BITMAP *osx_qz_full_init(int w, int h, int v_w, int v_h, int color_depth)
    _unix_lock_mutex(osx_event_mutex);
    bmp = private_osx_qz_full_init(w, h, v_w, v_h, color_depth);
    _unix_unlock_mutex(osx_event_mutex);
+
+   _unix_lock_mutex(osx_skip_events_processing_mutex);
+   osx_skip_events_processing = FALSE;
+   _unix_unlock_mutex(osx_skip_events_processing_mutex);
+
    if (!bmp)
       osx_qz_full_exit(bmp);
    return bmp;
@@ -294,6 +299,10 @@ static void osx_qz_full_exit(BITMAP *bmp)
    osx_gfx_mode = OSX_GFX_NONE;
    
    _unix_unlock_mutex(osx_event_mutex);
+
+   _unix_lock_mutex(osx_skip_events_processing_mutex);
+   osx_skip_events_processing = TRUE;
+   _unix_unlock_mutex(osx_skip_events_processing_mutex);
 }
-> I have no idea how to apply this for other than macosx.
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:31.