From 9256b21515b03d1d39013930cce4401b4dd3f8a0 Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 3 May 2010 16:32:25 +0000 Subject: - 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 --- src/menu/UMenu.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/menu/UMenu.pas') 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 -- cgit v1.2.3