about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2008-01-12 14:17:08 +0000
committerJakob Fries <jakob.fries@gmail.com>2008-01-12 14:17:08 +0000
commit2aba180f8c1bfa2680b1f660148de1dc82b03298 (patch)
tree3d5e6b155e34971cacafe5bd49541fa90ed470a9 /src
parent3f945bc163f5c06053ea77c898a64a8c51246fe9 (diff)
downloadzcatch-2aba180f8c1bfa2680b1f660148de1dc82b03298.tar.gz
zcatch-2aba180f8c1bfa2680b1f660148de1dc82b03298.zip
Fixed minor editor bug.
Diffstat (limited to 'src')
-rw-r--r--src/editor/editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editor/editor.cpp b/src/editor/editor.cpp
index 161192b5..ad229759 100644
--- a/src/editor/editor.cpp
+++ b/src/editor/editor.cpp
@@ -2569,8 +2569,8 @@ extern "C" void editor_update_and_render()
 		
 		if(mouse_x < 0) mouse_x = 0;
 		if(mouse_y < 0) mouse_y = 0;
-		if(mouse_x > ui_screen()->w) mouse_x = (int)ui_screen()->w;
-		if(mouse_y > ui_screen()->h) mouse_y = (int)ui_screen()->h;
+		if(mouse_x >= ui_screen()->w) mouse_x = (int)ui_screen()->w-1;
+		if(mouse_y >= ui_screen()->h) mouse_y = (int)ui_screen()->h-1;
 
 		// update the ui
 		mx = mouse_x;