Preliminary BE/Mac support.
To compile on Mac OSX: edit the Makefile and uncomment the OSX LIBS/CXXFLAGS additions (and comment out the -lGL -lGLU line) and edit lua/src/lvm.c to use the Big Endian macro.
This commit is contained in:
parent
6480603d61
commit
617e26091f
9 changed files with 56 additions and 7 deletions
8
main.cpp
8
main.cpp
|
@ -88,16 +88,24 @@ int main(int argc, char *argv[]) {
|
|||
Bitmap *splash_bm = ResourceLoader::instance()->loadBitmap("splash.bm");
|
||||
|
||||
SDL_Event event;
|
||||
|
||||
// For some reason we don't get the SDL_VIDEOEXPOSE event on OSX, so just don't wait for it.
|
||||
#ifndef OSX
|
||||
while (SDL_PollEvent(&event)) {
|
||||
if (event.type == SDL_VIDEOEXPOSE) {
|
||||
#else
|
||||
SDL_PollEvent(&event);
|
||||
#endif
|
||||
g_driver->clearScreen();
|
||||
|
||||
Bitmap::prepareDraw();
|
||||
splash_bm->draw();
|
||||
|
||||
g_driver->flipBuffer();
|
||||
#ifndef OSX
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
lua_open();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue