Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjazz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
openjazz
Commits
28f93b5d
Commit
28f93b5d
authored
Aug 01, 2010
by
alistert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied zear's Dingoo A320 patch, with some minor modifications.
parent
14234cf3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
241 additions
and
222 deletions
+241
-222
controls.cpp
src/io/controls.cpp
+26
-14
video.cpp
src/io/gfx/video.cpp
+1
-1
video.h
src/io/gfx/video.h
+2
-0
sound.cpp
src/io/sound.cpp
+12
-12
main.cpp
src/main.cpp
+186
-186
setupmenu.cpp
src/menu/setupmenu.cpp
+14
-9
No files found.
src/io/controls.cpp
View file @
28f93b5d
...
@@ -68,6 +68,18 @@ Controls::Controls () {
...
@@ -68,6 +68,18 @@ Controls::Controls () {
buttons
[
C_ESCAPE
].
button
=
GP2X_BUTTON_L
;
buttons
[
C_ESCAPE
].
button
=
GP2X_BUTTON_L
;
buttons
[
C_STATS
].
button
=
GP2X_BUTTON_SELECT
;
buttons
[
C_STATS
].
button
=
GP2X_BUTTON_SELECT
;
buttons
[
C_PAUSE
].
button
=
GP2X_BUTTON_START
;
buttons
[
C_PAUSE
].
button
=
GP2X_BUTTON_START
;
#elif defined(DINGOO)
buttons
[
C_UP
].
button
=
SDLK_UP
;
buttons
[
C_DOWN
].
button
=
SDLK_DOWN
;
buttons
[
C_LEFT
].
button
=
SDLK_LEFT
;
buttons
[
C_RIGHT
].
button
=
SDLK_RIGHT
;
buttons
[
C_JUMP
].
button
=
SDLK_LCTRL
;
buttons
[
C_FIRE
].
button
=
SDLK_LALT
;
buttons
[
C_CHANGE
].
button
=
SDLK_LSHIFT
;
buttons
[
C_ENTER
].
button
=
SDLK_RETURN
;
buttons
[
C_ESCAPE
].
button
=
SDLK_ESCAPE
;
buttons
[
C_STATS
].
button
=
SDLK_BACKSPACE
;
buttons
[
C_PAUSE
].
button
=
SDLK_TAB
;
#else
#else
buttons
[
C_UP
].
button
=
-
1
;
buttons
[
C_UP
].
button
=
-
1
;
buttons
[
C_DOWN
].
button
=
-
1
;
buttons
[
C_DOWN
].
button
=
-
1
;
...
...
src/io/gfx/video.cpp
View file @
28f93b5d
...
@@ -101,7 +101,7 @@ bool Video::create (int width, int height) {
...
@@ -101,7 +101,7 @@ bool Video::create (int width, int height) {
if
(
canvas
!=
screen
)
SDL_FreeSurface
(
canvas
);
if
(
canvas
!=
screen
)
SDL_FreeSurface
(
canvas
);
#endif
#endif
#if defined(WIZ) || defined(GP2X)
#if defined(WIZ) || defined(GP2X)
|| defined(DINGOO)
screen
=
SDL_SetVideoMode
(
320
,
240
,
8
,
FULLSCREEN_FLAGS
);
screen
=
SDL_SetVideoMode
(
320
,
240
,
8
,
FULLSCREEN_FLAGS
);
#else
#else
#ifdef FULLSCREEN_ONLY
#ifdef FULLSCREEN_ONLY
...
...
src/io/gfx/video.h
View file @
28f93b5d
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
#if defined(WIZ) || defined(GP2X)
#if defined(WIZ) || defined(GP2X)
#define FULLSCREEN_FLAGS (SDL_FULLSCREEN | SDL_SWSURFACE | SDL_HWPALETTE)
#define FULLSCREEN_FLAGS (SDL_FULLSCREEN | SDL_SWSURFACE | SDL_HWPALETTE)
#elif defined(DINGOO)
#define FULLSCREEN_FLAGS 0
#else
#else
#define FULLSCREEN_FLAGS (SDL_FULLSCREEN | SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWPALETTE)
#define FULLSCREEN_FLAGS (SDL_FULLSCREEN | SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWPALETTE)
#endif
#endif
...
...
src/io/sound.cpp
View file @
28f93b5d
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
#ifdef __SYMBIAN32__
#ifdef __SYMBIAN32__
#define MUSIC_RESAMPLEMODE MODPLUG_RESAMPLE_LINEAR
#define MUSIC_RESAMPLEMODE MODPLUG_RESAMPLE_LINEAR
#define MUSIC_FLAGS MODPLUG_ENABLE_MEGABASS
#define MUSIC_FLAGS MODPLUG_ENABLE_MEGABASS
#elif defined(WIZ) || defined(GP2X)
#elif defined(WIZ) || defined(GP2X)
|| defined(DINGOO)
#define MUSIC_RESAMPLEMODE MODPLUG_RESAMPLE_LINEAR
#define MUSIC_RESAMPLEMODE MODPLUG_RESAMPLE_LINEAR
#define MUSIC_FLAGS 0
#define MUSIC_FLAGS 0
#else
#else
...
...
src/main.cpp
View file @
28f93b5d
...
@@ -533,7 +533,7 @@ int loop (LoopType type, PaletteEffect* paletteEffects) {
...
@@ -533,7 +533,7 @@ int loop (LoopType type, PaletteEffect* paletteEffects) {
}
}
#endif
#endif
#if defined(WIZ) || defined(GP2X)
#if defined(WIZ) || defined(GP2X)
|| defined(DINGOO)
SDL_ShowCursor
(
SDL_DISABLE
);
SDL_ShowCursor
(
SDL_DISABLE
);
#endif
#endif
// Break statement intentionally omitted
// Break statement intentionally omitted
...
...
src/menu/setupmenu.cpp
View file @
28f93b5d
...
@@ -277,7 +277,7 @@ int SetupMenu::setupResolution () {
...
@@ -277,7 +277,7 @@ int SetupMenu::setupResolution () {
resolutions
=
SDL_ListModes
(
NULL
,
FULLSCREEN_FLAGS
);
resolutions
=
SDL_ListModes
(
NULL
,
FULLSCREEN_FLAGS
);
#if defined(WIZ) || defined(GP2X)
#if defined(WIZ) || defined(GP2X)
|| defined(DINGOO)
maxW
=
320
;
maxW
=
320
;
maxH
=
240
;
maxH
=
240
;
#else
#else
...
@@ -570,8 +570,13 @@ int SetupMenu::setup () {
...
@@ -570,8 +570,13 @@ int SetupMenu::setup () {
case
2
:
case
2
:
#if !defined(DINGOO)
setupJoystick
();
setupJoystick
();
#else
message
(
"FEATURE NOT AVAILABLE"
);
#endif
break
;
break
;
case
3
:
case
3
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment