maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] Allegro-4.4.2 on extras-devel (needs work) (https://talk.maemo.org/showthread.php?t=74921)

AapoRantalainen 2011-07-14 13:19

[Announce] Allegro-4.4.2 on extras-devel (needs work)
 
1 Attachment(s)
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.

jedi 2011-07-14 13:27

Re: [Announce] Allegro-4.4.2 on extras-devel (needs work)
 
I think you missed a bit ;)

Quote:

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

Nokia 5700 2011-07-15 10:05

Re: [Announce] Allegro-4.4.2 on extras-devel (needs work)
 
If this is working properly, we might get Zelda Classic running under Maemo, because there is a Pandora port. :) (It requires Allegro.)

ivgalvez 2012-06-05 09:54

Re: [Announce] Allegro-4.4.2 on extras-devel (needs work)
 
I have ported the game Head Over Heels and uploaded it to extras.

It also suffers the same problems with performance and fullscreen.

ivgalvez 2012-08-23 12:29

Re: [Announce] Allegro-4.4.2 on extras-devel (needs work)
 
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.

AapoRantalainen 2012-08-23 13:12

Re: [Announce] Allegro-4.4.2 on extras-devel (needs work)
 
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.


All times are GMT. The time now is 21:10.

vBulletin® Version 3.8.8