Thu Nov 9 20:14:34 PST 2000 Michael Jennings <mej@eterm.org>

Thanks to continuing help from Sung-Hyun Nam <namsh@lgic.co.kr>, I
	finally figured out the double-buffering problem people were seeing.
	And as it turns out, his original patch was correct.  So now it's
	fixed.  Many thanks for his assistance.


SVN revision: 3847
This commit is contained in:
Michael Jennings 2000-11-10 04:16:41 +00:00
parent 9e8120cb88
commit 4eef8689d7
2 changed files with 20 additions and 12 deletions

View File

@ -3946,3 +3946,11 @@ Thu Nov 9 19:22:18 PST 2000 Michael Jennings <mej@eterm.org>
zed@linuxpower.org. zed@linuxpower.org.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Thu Nov 9 20:14:34 PST 2000 Michael Jennings <mej@eterm.org>
Thanks to continuing help from Sung-Hyun Nam <namsh@lgic.co.kr>, I
finally figured out the double-buffering problem people were seeing.
And as it turns out, his original patch was correct. So now it's
fixed. Many thanks for his assistance.
-------------------------------------------------------------------------------

View File

@ -952,10 +952,10 @@ render_simage(simage_t *simg, Window win, unsigned short width, unsigned short h
XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap); XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap);
} else { } else {
XSetWindowBackgroundPixmap(Xdisplay, win, simg->pmap->pixmap); XSetWindowBackgroundPixmap(Xdisplay, win, simg->pmap->pixmap);
} if (!(renderop & RENDER_FORCE_PIXMAP)) {
if (!(renderop & RENDER_FORCE_PIXMAP)) { IMLIB_FREE_PIXMAP(simg->pmap->pixmap);
IMLIB_FREE_PIXMAP(simg->pmap->pixmap); simg->pmap->pixmap = None;
simg->pmap->pixmap = None; }
} }
} else { } else {
image_mode_fallback(which); image_mode_fallback(which);
@ -978,10 +978,10 @@ render_simage(simage_t *simg, Window win, unsigned short width, unsigned short h
XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap); XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap);
} else { } else {
XSetWindowBackgroundPixmap(Xdisplay, win, simg->pmap->pixmap); XSetWindowBackgroundPixmap(Xdisplay, win, simg->pmap->pixmap);
} if (!(renderop & RENDER_FORCE_PIXMAP)) {
if (!(renderop & RENDER_FORCE_PIXMAP)) { IMLIB_FREE_PIXMAP(simg->pmap->pixmap);
IMLIB_FREE_PIXMAP(simg->pmap->pixmap); simg->pmap->pixmap = None;
simg->pmap->pixmap = None; }
} }
} else { } else {
image_mode_fallback(which); image_mode_fallback(which);
@ -1096,10 +1096,10 @@ render_simage(simage_t *simg, Window win, unsigned short width, unsigned short h
/* FIXME: For efficiency, just fill the window with the pixmap /* FIXME: For efficiency, just fill the window with the pixmap
and handle exposes by copying from simg->pmap->pixmap. */ and handle exposes by copying from simg->pmap->pixmap. */
XSetWindowBackgroundPixmap(Xdisplay, win, simg->pmap->pixmap); XSetWindowBackgroundPixmap(Xdisplay, win, simg->pmap->pixmap);
} if (!(renderop & RENDER_FORCE_PIXMAP)) {
if (!(renderop & RENDER_FORCE_PIXMAP)) { IMLIB_FREE_PIXMAP(simg->pmap->pixmap);
IMLIB_FREE_PIXMAP(simg->pmap->pixmap); simg->pmap->pixmap = None;
simg->pmap->pixmap = None; }
} }
} else { } else {
print_error("Delayed image load failure for \"%s\". Using solid color mode.\n", imlib_image_get_filename()); print_error("Delayed image load failure for \"%s\". Using solid color mode.\n", imlib_image_get_filename());