[ scummvm-Patches-1325302 ] Patch to make WinCE backend work with OPIE

SourceForge.net noreply at sourceforge.net
Thu Oct 13 01:31:53 CEST 2005


Patches item #1325302, was opened at 2005-10-13 01:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1325302&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: j0tt (j0tt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch to make WinCE backend work with OPIE

Initial Comment:
This patch will allow you to use the keyboard, toolbar and key 
mappings on linux handheld devices running Opie (Qtopia 
OpenZaurus should work too).
Namely it makes the wince backend more usable with general SDL 
capable devices using 320x240 resolution.

Main changes:
- Introduced a getPreferredGUI{width,height} in OSystem and use 
this instead of the overlaySize in GUI elements. This will make the 
GUI elements scale correct when the keyboard/toolbar is enabled.
- Introduced a OPIE_BACKEND define which can be enabled with 
configure when choosing opie backend
- Fixed some #includes in backend/wince and dependend files that 
where not using correct path and cases 
- Put the backend/wince WinCE specific code in #ifndef 
OPIE_BACKEND and introduced some QT embedded code to 
query device resolution when building Opie backend
- Introduced SDL_xpm.h in backend/wince to parse xpm files
- Converted bmp to xpm and made new xpm for keyboard and 
toolbar (makes the patch so huge)
- Some #defines in stdafx.h to make the Opie backend more 
compatible with wince source

Notes:
diff -urN was run against CVS from 2005-10-13.

When using OpenEmbedded the bb should have something like this 
to make it work:

EXTRA_OECONF = "--host=linupy 		--backend=opie 		--with-sdl-prefix=${STAGING_BINDIR}/.. 		--disable-alsa 		--with-ogg-prefix=${STAGING_LIBDIR}/.. 		--with-tremor-prefix=${STAGING_LIBDIR}/.. 		--with-mpeg2-prefix=${STAGING_LIBDIR}/.. 		--with-mad-prefix=${STAGING_LIBDIR}/.. "


do_compile() {
	oe_runmake CC="${CC}" CXX="${CXX}" 
CFLAGS="${CFLAGS} -ggdb" CXXFLAGS="${CXXFLAGS} -ggdb -
I${STAGING_LIBDIR}/../qt2/include/" LDFLAGS="${LDFLAGS} -
lmpeg2 -lSDLmain -ggdb"                    DEFINES="-DUNIX -DSCUMM_NEED_ALIGNMENT  -
DUSE_MAD -DUSE_VORBIS -DUSE_TREMOR -DUSE_ZLIB -
DUSE_MPEG2  -DDISABLE_SAGA  -DOPIE_BACKEND -
DSMALL_SCREEN_DEVICE -DDISABLE_KYRA"
}


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1325302&group_id=37116




More information about the Scummvm-tracker mailing list