--- ../snes9x-1.43-orig/snes9x/unix/x11.cpp 2004-12-31 07:15:47 +0900 +++ snes9x/unix/x11.cpp 2006-09-10 07:52:27 +0900 @@ -498,10 +498,11 @@ XSetWindowAttributes attrib; attrib.background_pixel = BlackPixelOfScreen (GUI.screen); + /* height+2: gives us 239 -> 240 [really 241], 478 -> 480 */ GUI.window = XCreateWindow (GUI.display, RootWindowOfScreen (GUI.screen), (WidthOfScreen(GUI.screen) - GUI.window_width) / 2, - (HeightOfScreen(GUI.screen) - GUI.window_height) / 2, - GUI.window_width, GUI.window_height, 0, + (HeightOfScreen(GUI.screen) - (GUI.window_height+2)) / 2, + GUI.window_width, GUI.window_height+2, 0, GUI.depth, InputOutput, GUI.visual, CWBackPixel, &attrib); @@ -1782,7 +1783,9 @@ GUI.window_height != event.xconfigure.height)) { GUI.window_width = event.xconfigure.width; - GUI.window_height = event.xconfigure.height; + /* watch out for +2 in XCreateWindow */ + if (event.xconfigure.height-2 != GUI.window_height) + GUI.window_height = event.xconfigure.height; IPPU.RenderThisFrame = TRUE; IPPU.FrameSkip = Settings.SkipFrames; SetupImage ();