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
6b2a8919
Commit
6b2a8919
authored
Apr 15, 2010
by
pickle136
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up warnings
parent
e5e4e12c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
362 additions
and
361 deletions
+362
-361
OpenJazz.h
src/OpenJazz.h
+9
-9
file.cpp
src/io/file.cpp
+186
-186
pixel.cpp
src/io/gfx/scale2x/pixel.cpp
+4
-4
video.cpp
src/io/gfx/video.cpp
+1
-1
video.h
src/io/gfx/video.h
+63
-63
levelload.cpp
src/level/levelload.cpp
+97
-96
scene.cpp
src/scene/scene.cpp
+1
-1
sceneload.cpp
src/scene/sceneload.cpp
+1
-1
No files found.
src/OpenJazz.h
View file @
6b2a8919
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
// Files
// Files
#ifdef __SYMBIAN32__
#ifdef __SYMBIAN32__
#ifdef UIQ3
#ifdef UIQ3
#define CONFIG_FILE "c:\\shared\\openjazz\\openjazz.cfg"
"
#define CONFIG_FILE "c:\\shared\\openjazz\\openjazz.cfg"
#else
#else
#define CONFIG_FILE "c:\\data\\openjazz\\openjazz.cfg"
#define CONFIG_FILE "c:\\data\\openjazz\\openjazz.cfg"
#endif
#endif
...
@@ -221,7 +221,7 @@ EXTERN fixed fTan (fixed angle);
...
@@ -221,7 +221,7 @@ EXTERN fixed fTan (fixed angle);
#ifdef VERBOSE
#ifdef VERBOSE
#define LOG(x, y) log(x, y)
#define LOG(x, y) log(x, y)
#else
#else
#define LOG(x, y)
x; y
#define LOG(x, y)
#endif
#endif
#endif
#endif
...
...
src/io/file.cpp
View file @
6b2a8919
...
@@ -349,7 +349,7 @@ unsigned char* File::loadPixels (int length, int key) {
...
@@ -349,7 +349,7 @@ unsigned char* File::loadPixels (int length, int key) {
unsigned
char
*
pixels
;
unsigned
char
*
pixels
;
unsigned
char
*
sorted
;
unsigned
char
*
sorted
;
unsigned
char
mask
;
unsigned
char
mask
=
0
;
int
count
;
int
count
;
...
...
src/io/gfx/scale2x/pixel.cpp
View file @
6b2a8919
...
@@ -29,20 +29,20 @@ pixel_t pixel_get(int x, int y, const unsigned char* pix, unsigned slice, unsign
...
@@ -29,20 +29,20 @@ pixel_t pixel_get(int x, int y, const unsigned char* pix, unsigned slice, unsign
if
(
opt_tes
)
{
if
(
opt_tes
)
{
if
(
x
<
0
)
if
(
x
<
0
)
x
+=
dx
;
x
+=
dx
;
if
(
x
>=
dx
)
if
(
(
unsigned
int
)
x
>=
dx
)
x
-=
dx
;
x
-=
dx
;
if
(
y
<
0
)
if
(
y
<
0
)
y
+=
dy
;
y
+=
dy
;
if
(
y
>=
dy
)
if
(
(
unsigned
int
)
y
>=
dy
)
y
-=
dy
;
y
-=
dy
;
}
else
{
}
else
{
if
(
x
<
0
)
if
(
x
<
0
)
x
=
0
;
x
=
0
;
if
(
x
>=
dx
)
if
(
(
unsigned
int
)
x
>=
dx
)
x
=
dx
-
1
;
x
=
dx
-
1
;
if
(
y
<
0
)
if
(
y
<
0
)
y
=
0
;
y
=
0
;
if
(
y
>=
dy
)
if
(
(
unsigned
int
)
y
>=
dy
)
y
=
dy
-
1
;
y
=
dy
-
1
;
}
}
...
...
src/io/gfx/video.cpp
View file @
6b2a8919
...
@@ -183,7 +183,7 @@ SDL_Color* Video::getPalette () {
...
@@ -183,7 +183,7 @@ SDL_Color* Video::getPalette () {
}
}
void
Video
::
changePalette
(
SDL_Color
*
palette
,
unsigned
char
first
,
unsigned
char
amount
)
{
void
Video
::
changePalette
(
SDL_Color
*
palette
,
unsigned
char
first
,
unsigned
int
amount
)
{
SDL_SetPalette
(
screen
,
SDL_PHYSPAL
,
palette
,
first
,
amount
);
SDL_SetPalette
(
screen
,
SDL_PHYSPAL
,
palette
,
first
,
amount
);
...
...
src/io/gfx/video.h
View file @
6b2a8919
...
@@ -76,7 +76,7 @@ class Video {
...
@@ -76,7 +76,7 @@ class Video {
void
setPalette
(
SDL_Color
*
palette
);
void
setPalette
(
SDL_Color
*
palette
);
SDL_Color
*
getPalette
();
SDL_Color
*
getPalette
();
void
changePalette
(
SDL_Color
*
palette
,
unsigned
char
first
,
unsigned
char
amount
);
void
changePalette
(
SDL_Color
*
palette
,
unsigned
char
first
,
unsigned
int
amount
);
void
restoreSurfacePalette
(
SDL_Surface
*
surface
);
void
restoreSurfacePalette
(
SDL_Surface
*
surface
);
int
getWidth
();
int
getWidth
();
...
...
src/level/levelload.cpp
View file @
6b2a8919
...
@@ -322,7 +322,8 @@ int Level::load (char *fileName, unsigned char diff, bool checkpoint) {
...
@@ -322,7 +322,8 @@ int Level::load (char *fileName, unsigned char diff, bool checkpoint) {
File
*
file
;
File
*
file
;
unsigned
char
*
buffer
;
unsigned
char
*
buffer
;
char
*
string
,
*
ext
;
const
char
*
ext
;
char
*
string
;
int
tiles
;
int
tiles
;
int
count
,
x
,
y
,
type
;
int
count
,
x
,
y
,
type
;
...
...
src/scene/scene.cpp
View file @
6b2a8919
...
@@ -253,7 +253,7 @@ int Scene::play () {
...
@@ -253,7 +253,7 @@ int Scene::play () {
SDL_Rect
dst
;
SDL_Rect
dst
;
unsigned
int
sceneIndex
=
0
;
unsigned
int
sceneIndex
=
0
;
SceneImage
*
image
;
SceneImage
*
image
;
SceneAnimation
*
animation
;
SceneAnimation
*
animation
=
NULL
;
SceneFrame
*
currentFrame
=
NULL
;
SceneFrame
*
currentFrame
=
NULL
;
SceneFrame
*
lastFrame
=
NULL
;
SceneFrame
*
lastFrame
=
NULL
;
int
frameDelay
=
0
;
int
frameDelay
=
0
;
...
...
src/scene/sceneload.cpp
View file @
6b2a8919
...
@@ -483,7 +483,7 @@ void Scene::loadScripts (File *f) {
...
@@ -483,7 +483,7 @@ void Scene::loadScripts (File *f) {
int
textPosY
=
-
1
;
int
textPosY
=
-
1
;
int
extraheight
=
-
1
;
int
extraheight
=
-
1
;
SDL_Rect
textRect
;
SDL_Rect
textRect
=
{
0
,
0
,
0
,
0
}
;
bool
textRectValid
=
false
;
bool
textRectValid
=
false
;
f
->
seek
(
scriptStarts
[
loop
],
true
);
// Seek to data start
f
->
seek
(
scriptStarts
[
loop
],
true
);
// Seek to data start
...
...
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