aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-23 15:57:59 +0100
committerGinger Bill <bill@gingerbill.org>2016-10-23 15:57:59 +0100
commitb454371f3b16d8c75671362ee673ccc72b722276 (patch)
tree760378f3804999f6e27e1b5f07bd1cecade33db5 /code
parentbd5d095de4a3a3de574f6004751718ee944417cc (diff)
Separation of certain instructions for better clarity.
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin4
-rw-r--r--code/game.odin3
2 files changed, 5 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 91e74a9a2..c9dfd7367 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,7 +1,9 @@
#import "fmt.odin"
main :: proc() {
- fmt.println("Hellope!")
+ v: {4}f32
+ v[0] = 123
+ fmt.println("Hellope!", v, v[0])
}
diff --git a/code/game.odin b/code/game.odin
index a2f9ab7df..31b6b28f1 100644
--- a/code/game.odin
+++ b/code/game.odin
@@ -46,7 +46,8 @@ make_window :: proc(title: string, msg, height: int, window_proc: win32.WNDPROC)
w: Window
w.width, w.height = msg, height
- c_class_name := "Win32-Odin-Window\x00".data
+ class_name := "Win32-Odin-Window\x00"
+ c_class_name := class_name.data
if title[title.count-1] != 0 {
w.c_title = to_c_string(title)
} else {