Skip to content

Instantly share code, notes, and snippets.

@quag
Created November 20, 2009 07:27
Show Gist options
  • Save quag/239340 to your computer and use it in GitHub Desktop.
Save quag/239340 to your computer and use it in GitHub Desktop.
From fa9d42a90dcb649943e8444b504245f1863b2b21 Mon Sep 17 00:00:00 2001
From: Jonathan Wright <[email protected]>
Date: Fri, 20 Nov 2009 20:26:03 +1300
Subject: [PATCH] Fixing left/right up/down switch
---
sample.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sample.go b/sample.go
index 3a2e799..99252e7 100644
--- a/sample.go
+++ b/sample.go
@@ -31,7 +31,7 @@ func input(x, y int) {
y = y + 1;
}
Stdwin.Clear();
- Stdwin.Addch(x, y, '@');
+ Stdwin.Addch(y, x, '@');
Stdwin.Refresh();
}
}
--
1.6.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment