Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
joeylib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Milestones
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Public Skunkworks
joeylib
Commits
66b7d8b3
Commit
66b7d8b3
authored
Oct 27, 2019
by
Scott Duensing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding JoeyLib logo to repo.
parent
7565c30b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
1 deletion
+58
-1
.gitignore
.gitignore
+5
-0
assets/JoeyLib Logo.xcf
assets/JoeyLib Logo.xcf
+3
-0
joeylib/joeylib.pro
joeylib/joeylib.pro
+6
-1
joeylib/src/jSDL12.c
joeylib/src/jSDL12.c
+44
-0
No files found.
.gitignore
View file @
66b7d8b3
...
...
@@ -6,3 +6,8 @@ joeylib/src/music
joeylib/src/music.w
joeylib/src/*.dis
joeylib/src/*.map
build-*/
notes.txt
assets/JoeyLib Logo - 320x200.png
assets/JoeyLib Logo.jpg
assets/JoeyLib Logo.png
assets/JoeyLib Logo.xcf
0 → 100644
LFS
View file @
66b7d8b3
File added
joeylib/joeylib.pro
View file @
66b7d8b3
...
...
@@ -22,19 +22,24 @@ SOURCES += \
src
/
test
.
c
SDL12
{
INCLUDEPATH
+=
$$
JOEY
/
sdks
/
linux
/
x64
/
include
SOURCES
+=
src
/
jSDL12
.
c
LIBS
+=
\
-
L
$$
JOEY
/
sdks
/
linux
/
x64
/
lib
\
-
lSDL
\
-
Wl
,
-
rpath
,
$$
JOEY
/
sdks
/
linux
/
x64
/
lib
\
-
lSDL_mixer
\
-
lmikmod
\
-
lSDL
\
-
lm
\
-
ldl
\
-
lsndio
}
SDL2
{
INCLUDEPATH
+=
$$
JOEY
/
sdks
/
linux
/
x64
/
include
SOURCES
+=
src
/
jSDL2
.
c
LIBS
+=
\
...
...
joeylib/src/jSDL12.c
View file @
66b7d8b3
...
...
@@ -20,9 +20,15 @@
*/
#include "SDL/SDL.h"
#include "SDL/SDL_mixer.h"
#include "joey.h"
static
SDL_Surface
*
_jlScreen
=
NULL
;
void
jlDisplayPresent
(
void
)
{
}
...
...
@@ -42,6 +48,7 @@ void jlDrawBlit8x8a(jlSurfaceT source, jint16 cx1, jint16 cy1, jint16 cx2, jint1
(
void
)
cy1
;
(
void
)
cx2
;
(
void
)
cy2
;
(
void
)
offset
;
}
...
...
@@ -201,12 +208,49 @@ void jlUtilNibbleSwap(byte *mem, jint16 count, byte old, byte new) {
void
jlUtilShutdown
(
void
)
{
SDL_FreeSurface
(
_jlScreen
);
jlSoundMusicStop
();
Mix_CloseAudio
();
Mix_Quit
();
SDL_Quit
();
jlUtilDie
(
"Clean Exit."
);
}
void
jlUtilStartup
(
char
*
appTitle
)
{
Uint32
vflags
;
int
mflags
;
int
result
;
(
void
)
appTitle
;
// Start low-level tools
if
(
SDL_Init
(
SDL_INIT_EVERYTHING
)
==
-
1
)
{
jlUtilDie
(
SDL_GetError
());
}
// Start audio mixer & music system.
mflags
=
MIX_INIT_MOD
;
result
=
Mix_Init
(
mflags
);
if
((
result
&
mflags
)
!=
mflags
)
{
jlUtilDie
(
Mix_GetError
());
}
if
(
Mix_OpenAudio
(
11025
,
AUDIO_U8
,
1
,
1024
)
==
-
1
)
{
jlUtilDie
(
Mix_GetError
());
}
// Set up video
vflags
=
SDL_HWSURFACE
;
#ifdef JOEY_LINUX
SDL_WM_SetCaption
(
appTitle
,
NULL
);
#else
vflags
|=
SDL_FULLSCREEN
;
#endif
_jlScreen
=
SDL_SetVideoMode
(
320
,
200
,
16
,
vflags
);
if
(
!
_jlScreen
)
{
jlUtilDie
(
SDL_GetError
());
}
}
...
...
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