PowerMacX
2004.10.22, 10:13 PM
I'm trying to apply arekkusu's miniaturize fix for OpenGL windows (http://www.idevgames.com/forum/showthread.php?t=5750) to SDL, and to do so I first need to be able to compile SDL from source. The problem I'm having is that Xcode complains about a missing file, SDL_syscdrom_c.h, so I can't even compile the original, unmodified SDL code (1.2.7).
Anyone else had this problem?
The place that will need to be modified with the miniaturize code linked above is
...
@implementation SDL_QuartzWindow
/* we override these methods to fix the miniaturize animation/dock icon bug */
- (void)miniaturize:(id)sender
{
if (SDL_VideoSurface->flags & SDL_OPENGL) {
/*
Future: Grab framebuffer and put into NSImage
[ qz_window setMiniwindowImage:image ];
*/
}
else {
/* make the alpha channel opaque so anim won't have holes in it */
QZ_SetPortAlphaOpaque ();
}
/* window is hidden now */
SDL_PrivateAppActive (0, SDL_APPACTIVE);
[ super miniaturize:sender ];
}
...
in SDL-1.2.7/src/video/quartz/SDL_QuartzWindow.m
If someone can help me find out what is causing SDL compile to fail, I'll (try to) modify this file to miniaturize OpenGL views properly.
Anyone else had this problem?
The place that will need to be modified with the miniaturize code linked above is
...
@implementation SDL_QuartzWindow
/* we override these methods to fix the miniaturize animation/dock icon bug */
- (void)miniaturize:(id)sender
{
if (SDL_VideoSurface->flags & SDL_OPENGL) {
/*
Future: Grab framebuffer and put into NSImage
[ qz_window setMiniwindowImage:image ];
*/
}
else {
/* make the alpha channel opaque so anim won't have holes in it */
QZ_SetPortAlphaOpaque ();
}
/* window is hidden now */
SDL_PrivateAppActive (0, SDL_APPACTIVE);
[ super miniaturize:sender ];
}
...
in SDL-1.2.7/src/video/quartz/SDL_QuartzWindow.m
If someone can help me find out what is causing SDL compile to fail, I'll (try to) modify this file to miniaturize OpenGL views properly.