   help with "glitch" in window
  hi,ive been having this strange problem with my map editor for awhile, and id like to fix it now. the map editor's resolution is 1024x768. my desktop is set to 1024x768 also. now for some weird reason, all the collision detection for the program is slightly "off" by about 10 pixels or so. IE, my mouse will be 10 pixels below a butotn, but the button will still be high-lighted as if im completely over it. or when i go to place a tile on the map, if the mouse is towards the edge of the tile, it will place it on the next tile above.... the weird thing is, if i "grab" the window, and move it just very slightly, the glitch sort of just "pops out". ie, i see the window "stretch" really fast, and all of a sudden the glitch is gone! so basically, when i start the map editor, i have to grab the window and move it slightly so the glitch goes away. also, i dont have to move it to any certain spot - i just have to grab the window, i could drop it right in the same place that i grabbed it, and it will work fine....has anyone every heard of this? even stranger, if i set my screen resolution to be something higher then 1024x768, and run the program.. theres no glitch! it works fine! but if my desktop is set at 1024x768 also, then the glitch happends... so weird...thanks for any help!!   
  That is quite a strange problem...What sort of window is this? Is it a window in an MFC App?  Is your editor just one OpenGL window?  If it is just one OpenGL window, it may be a problem during/after window creation or something concerning the viewport and perspective.  You might want to take a look at the basecode at nehe.gamedev.net and make sure nothing is whacky in your window creation or OpenGL initialization code.  Anyway, I hope that helped.  Good luck!PS. How are you handling your input? (windows msgs/dinput/glut?)   ;  hey man,im using SDL for window creation. yes, its just a single window made for use of OpenGL. also im using SDL for taking input and things. thanks for anymore help!!   ;  If you have titlebars and borders on the window, and the window is the same size as the screen resolution, the renderable area will be less than the screen resolution. Therefore the mouse coordinates may not match the internal coordinate system.Maybe that's your glitch.   