summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2012-05-02 23:06:41 +0000
committerIan C <ianc@noddybox.co.uk>2012-05-02 23:06:41 +0000
commit02bec4f3037c470b6840b6f7418d64aab9bdf4b0 (patch)
treed3e9a7fe2f0b938e4bdad83149ecfdfcf4042b4e /src
parenta4cb1430b5286f2dd8a1fd1dc15d7c12fd0382fd (diff)
Fixed bug with keyboard offset on screen.
Diffstat (limited to 'src')
-rw-r--r--src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs b/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs
index 1b6f61c..7d802da 100644
--- a/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs
+++ b/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs
@@ -216,7 +216,7 @@ namespace Noddybox.Emulation.Xna.Keyboard
{
KeyboardKey k = keyboard.Definitions[f];
- keymapPos[f] = new Rectangle(k.X, k.Y, k.Width, k.Height);
+ keymapPos[f] = new Rectangle((int)position.X + k.X, (int)position.Y + k.Y, k.Width, k.Height);
keymapState[f] = new KeyState()
{