Adding JoeyLib logo to repo.

This commit is contained in:
Scott Duensing 2019-10-27 19:25:57 -05:00
parent 7565c30b2a
commit 66b7d8b38b
4 changed files with 58 additions and 1 deletions

5
.gitignore vendored
View file

@ -6,3 +6,8 @@ joeylib/src/music
joeylib/src/music.w joeylib/src/music.w
joeylib/src/*.dis joeylib/src/*.dis
joeylib/src/*.map joeylib/src/*.map
build-*/
notes.txt
assets/JoeyLib Logo - 320x200.png
assets/JoeyLib Logo.jpg
assets/JoeyLib Logo.png

BIN
assets/JoeyLib Logo.xcf (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -22,19 +22,24 @@ SOURCES += \
src/test.c src/test.c
SDL12 { SDL12 {
INCLUDEPATH += $$JOEY/sdks/linux/x64/include
SOURCES += src/jSDL12.c SOURCES += src/jSDL12.c
LIBS += \ LIBS += \
-L$$JOEY/sdks/linux/x64/lib \ -L$$JOEY/sdks/linux/x64/lib \
-lSDL \ -Wl,-rpath,$$JOEY/sdks/linux/x64/lib \
-lSDL_mixer \ -lSDL_mixer \
-lmikmod \ -lmikmod \
-lSDL \
-lm \ -lm \
-ldl \ -ldl \
-lsndio -lsndio
} }
SDL2 { SDL2 {
INCLUDEPATH += $$JOEY/sdks/linux/x64/include
SOURCES += src/jSDL2.c SOURCES += src/jSDL2.c
LIBS += \ LIBS += \

View file

@ -20,9 +20,15 @@
*/ */
#include "SDL/SDL.h"
#include "SDL/SDL_mixer.h"
#include "joey.h" #include "joey.h"
static SDL_Surface *_jlScreen = NULL;
void jlDisplayPresent(void) { void jlDisplayPresent(void) {
} }
@ -42,6 +48,7 @@ void jlDrawBlit8x8a(jlSurfaceT source, jint16 cx1, jint16 cy1, jint16 cx2, jint1
(void)cy1; (void)cy1;
(void)cx2; (void)cx2;
(void)cy2; (void)cy2;
(void)offset;
} }
@ -201,12 +208,49 @@ void jlUtilNibbleSwap(byte *mem, jint16 count, byte old, byte new) {
void jlUtilShutdown(void) { void jlUtilShutdown(void) {
SDL_FreeSurface(_jlScreen);
jlSoundMusicStop();
Mix_CloseAudio();
Mix_Quit();
SDL_Quit();
jlUtilDie("Clean Exit."); jlUtilDie("Clean Exit.");
} }
void jlUtilStartup(char *appTitle) { void jlUtilStartup(char *appTitle) {
Uint32 vflags;
int mflags;
int result;
(void)appTitle; (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());
}
} }