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:
parent
45f576bd99
commit
fa3b3978f6
3 changed files with 10 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue