--- ../snes9x-1.51-src-orig/unix/x11.cpp 2007-04-29 09:51:08 +0900 +++ unix/x11.cpp 2008-02-10 15:42:47 +0900 @@ -575,10 +575,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); @@ -996,7 +997,8 @@ GUI.window_height != event.xconfigure.height)) { GUI.window_width = event.xconfigure.width; - GUI.window_height = event.xconfigure.height; + /* watch out for +2 in XCreateWindow */ + GUI.window_height = event.xconfigure.height-2; IPPU.RenderThisFrame = TRUE; IPPU.FrameSkip = Settings.SkipFrames; SetupImage ();