Bug 5034 - q3_ui: fill whole screen and allow cursor to move to edge in widescreen, patch by Zack Middleton

This commit is contained in:
Thilo Schulz committed 2011-06-11 20:18:16 +00:00
1 parent 45f576bd99
commit fa3b3978f6
3 files changed
+10 -12

No files matched your search

+4 -4
View File
@@ -879,10 +879,10 @@ void UI_MouseEvent( int dx, int dy )
// update mouse screen position
uis.cursorx += dx;
if (uis.cursorx < 0)
uis.cursorx = 0;
else if (uis.cursorx > SCREEN_WIDTH)
uis.cursorx = SCREEN_WIDTH;
if (uis.cursorx < -uis.bias)
uis.cursorx = -uis.bias;
else if (uis.cursorx > SCREEN_WIDTH+uis.bias)
uis.cursorx = SCREEN_WIDTH+uis.bias;
uis.cursory += dy;
if (uis.cursory < 0)