Permalink
Browse files

Don't draw image if widget is mapped (should be redundant, a subset o…

…f sExposed)
  • Loading branch information...
1 parent 9af1abc commit c4ede0c5970f32707503a0518275d9f694c04b97 @akkana committed Feb 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 gwin.c
View
4 gwin.c
@@ -271,8 +271,8 @@ void DrawImage()
gCurImage->curWidth, gCurImage->curHeight);
}
if (gImage == 0 || gWin == 0 || sDrawingArea == 0) return;
- if (!sExposed)
- return;
+ if (!sExposed) return;
+ if (!GTK_WIDGET_MAPPED(gWin)) return;
if (gDisplayMode == PHO_DISPLAY_PRESENTATION) {
gint width, height;

0 comments on commit c4ede0c

Please sign in to comment.