aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-03 16:32:25 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-03 16:32:25 +0000
commit9256b21515b03d1d39013930cce4401b4dd3f8a0 (patch)
tree0415857ded933d886858bbcd0809a592a1cd10c8
parent37942ff9f5d185284c53f741449d1a7a846525ef (diff)
downloadusdx-9256b21515b03d1d39013930cce4401b4dd3f8a0.tar.gz
usdx-9256b21515b03d1d39013930cce4401b4dd3f8a0.tar.xz
usdx-9256b21515b03d1d39013930cce4401b4dd3f8a0.zip
- Replaced another usage of Screen.w/Screen.h with ScreenW/ScreenH
- This fixes the detection of the mouse position on non 4:3 displays git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2333 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/menu/UMenu.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu/UMenu.pas b/src/menu/UMenu.pas
index a05c667f..dd4f257e 100644
--- a/src/menu/UMenu.pas
+++ b/src/menu/UMenu.pas
@@ -1667,10 +1667,10 @@ begin
end;
// transfer mousecords to the 800x600 raster we use to draw
- X := Round((X / (Screen.w / Screens)) * RenderW);
+ X := Round((X / (ScreenW / Screens)) * RenderW);
if (X > RenderW) then
X := X - RenderW;
- Y := Round((Y / Screen.h) * RenderH);
+ Y := Round((Y / ScreenH) * RenderH);
nBut := InteractAt(X, Y);
if nBut >= 0 then