qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Mac OS X (SDL quartz driver) Bug in resizing.
@ 2004-07-17 13:37 Pierre d'Herbemont
  2004-07-17 13:47 ` René Korthaus
  2004-07-17 14:03 ` Laurent Amon
  0 siblings, 2 replies; 10+ messages in thread
From: Pierre d'Herbemont @ 2004-07-17 13:37 UTC (permalink / raw)
  To: sdl; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

Hi,

When using Qemu [1] on Mac OS X, changing the window size ends up in a 
segfault. Actually it seems that there are memory leaks if the Window 
and its view are not totally released. The ugly patch attached fixes 
the troubles:

By the way if any Mac OS X SDL developer want to try out QEMU, I think 
there are some libsdl-bugs to track down.

Thanks,

Pierre.

[1] http://bellard.org/qemu


[-- Attachment #2: sdl.diff.txt --]
[-- Type: text/plain, Size: 834 bytes --]

Index: SDL_QuartzVideo.m
===================================================================
RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/src/video/quartz/SDL_QuartzVideo.m,v
retrieving revision 1.39
diff -u -r1.39 SDL_QuartzVideo.m
--- SDL_QuartzVideo.m	22 Mar 2004 09:38:20 -0000	1.39
+++ SDL_QuartzVideo.m	17 Jul 2004 13:36:15 -0000
@@ -671,11 +671,13 @@
         - If it is OpenGL (since gl attributes could be different)
         - If new mode is OpenGL, but previous mode wasn't
     */
+#if 0
     if (video_set == SDL_TRUE)
         if ( (mode_flags & SDL_FULLSCREEN) ||
              ((mode_flags ^ flags) & (SDL_NOFRAME|SDL_RESIZABLE)) ||
              (mode_flags & SDL_OPENGL) || 
              (flags & SDL_OPENGL) )
+#endif
             QZ_UnsetVideoMode (this);
     
     /* Check for user-specified window and view */

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-08-14 13:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-17 13:37 [Qemu-devel] Mac OS X (SDL quartz driver) Bug in resizing Pierre d'Herbemont
2004-07-17 13:47 ` René Korthaus
2004-07-17 16:06   ` Pierre d'Herbemont
2004-07-17 14:03 ` Laurent Amon
2004-07-17 14:32   ` Johannes Schindelin
2004-07-17 16:21     ` Laurent Amon
2004-07-18  8:08       ` [Qemu-devel] Mac OS X keycodes Laurent Amon
2004-07-18 12:36         ` René Korthaus
2004-07-18 22:01         ` [Qemu-devel] PATCH : " Laurent Amon
2004-08-14 13:44       ` [Qemu-devel] Mac OS X (SDL quartz driver) Bug in resizing Gianni Tedesco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).