Commit 41b87c40 authored by hybrid's avatar hybrid

Make variables more local.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2038 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 94ecc763
......@@ -132,8 +132,6 @@ namespace irr
//! Sets the new position of the cursor.
virtual void setPosition(s32 x, s32 y)
{
RECT rect;
if (UseReferenceRect)
{
SetCursorPos(ReferenceRect.UpperLeftCorner.X + x,
......@@ -141,6 +139,7 @@ namespace irr
}
else
{
RECT rect;
if (GetWindowRect(HWnd, &rect))
SetCursorPos(x + rect.left + BorderX, y + rect.top + BorderY);
}
......@@ -198,7 +197,6 @@ namespace irr
{
POINT p;
GetCursorPos(&p);
RECT rect;
if (UseReferenceRect)
{
......@@ -207,6 +205,7 @@ namespace irr
}
else
{
RECT rect;
if (GetWindowRect(HWnd, &rect))
{
CursorPos.X = p.x-rect.left-BorderX;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment