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:
Joost Peters 2004-03-21 15:16:57 +00:00
parent 6480603d61
commit 617e26091f
9 changed files with 56 additions and 7 deletions

View file

@ -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();