PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

port to nokia 3650 doesn't work

ten foot ninja · 06 Nov 2005, 21:53 UTC
hello,
i've made a game using gapidraw for win32, ported it to s60. it works on win32 (like a dream) and runs in the emulator without any show stopping problems. But when i make a sis and install it on my 3650, nothing happens.

i select the game from the menu and a standard, blank, s60 screen pops up with the title bar that has the game name, and my phones current reception strength. nothing else. it doesn't hang, i can exit at any time (and when i do, the title bar (only) gets replaced with graphics from my game for a second before i see the s60 app menu).

the Uids are fine. i've looked around forums and have been unable to see a similar post. If anyone has an idea as to what is going on, i'd be very grateful for any feed back. Thanks in advance!
ten foot ninja · 07 Nov 2005, 02:33 UTC
ok... i figured it out... it has something to do with the way gapidraw initializes the gapidraw object

in the CMyApplication::ConstructL() method that comes with the samples, i had to change the m_config.dwDisplayFlags settings from

m_config.dwDisplayFlags = GDDISPLAY_FULLSCREEN | ddevice::GetDisplayConfig();

to m_config.dwDisplayFlags = GDDISPLAY_SYMBIANPALETTE32 | GDDISPLAY_FULLSCREEN

i recall seeing a thread regarding this. its vexing because the samples run on my phone well, but the same code doesn't run with my game.

again, i'd love to hear any ideas
cheers!
ten foot ninja · 07 Nov 2005, 02:41 UTC
sorry... something to do with initializing the CGapiDisplay object, not gapidraw object (eurphoria of getting it working has dissipated, can type properly now)
ten foot ninja · 07 Nov 2005, 06:26 UTC
right, it recently dawned on me that in the sample code for symbian, a SERIES60 macro needs to be defined for avkon in order for the above proper handling to take place, as well as multiple key inputs to be captured at the same time.

i put:
#define SERIES60
at the top of GapiApplication.h