Hi Byron On Tuesday 11 May 2004 09:19 pm, Byron Q. Desnoyers Winmill wrote: > Okay, I traced the problem to uae_sem_init() which is #defined as > sem_init(). It returns -1, and perror("") gives "Function not > implemented". I'm guessing that this means that Mac OS X doesn't > include sem_init(). While the headers are there, it isn't in the > documentation and 'strings /usr/lib/libpthread.dylib | grep sem_' > didn't produce any results. Quite frankly, I don't see how it > would link. Anyhow, more error checking would demystify that type > of error. :-) > > Any suggestions for how to fix it? That's most interesting. Thanks for the detective work. I'll look into this. > With SDL, yes. With X, it may be slow but it is not noticably > slow. I haven't the slightest idea how video is implemented, so > I don't know how much of a performance hit it represents. Try the attached patch. It's should improve speed in fullscreen mode. (Using a hardware surface for what we're doing here is never really a good idea.) Cheers, Rich
--- src/gfx-sdl/sdlgfx.c_old 2004-05-11 22:37:16.000000000 -0500 +++ src/gfx-sdl/sdlgfx.c 2004-05-11 22:37:19.000000000 -0500 @@ -327,14 +327,10 @@ static int graphics_subinit (void) { - Uint32 uiSDLVidModFlags; + Uint32 uiSDLVidModFlags = 0; DEBUG_LOG ("Function: graphics_subinit\n"); - /* Always ask for a HW surface - we'll rarely get one, but - * we may as well try. ;-) */ - uiSDLVidModFlags = SDL_HWSURFACE; - if (bitdepth == 8) uiSDLVidModFlags |= SDL_HWPALETTE; if (fullscreen)