about summary refs log tree commit diff stats
path: root/apps/texture.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/texture.mu')
-rw-r--r--apps/texture.mu11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/texture.mu b/apps/texture.mu
index 4e73b9f2..edac4126 100644
--- a/apps/texture.mu
+++ b/apps/texture.mu
@@ -28,19 +28,24 @@ fn main -> exit-status/ebx: int {
       # r
       var tmp/eax: int <- copy col
       tmp <- multiply row
-      tmp <- and 0xff
+      tmp <- and 0x7f
+      tmp <- add 0x80
+      tmp <- copy 0xff
       print-int32-decimal 0, tmp
       print-string 0, " "
       # g
       tmp <- copy row
       tmp <- multiply col
-      tmp <- and col
+      tmp <- and 0x7f
+      tmp <- add 0x80
+#?       tmp <- copy 0xcf
       print-int32-decimal 0, tmp
       print-string 0, " "
       # b
       tmp <- copy row
       tmp <- multiply col
-      tmp <- and row
+      tmp <- and 0x7f
+      tmp <- add 0x80
       print-int32-decimal 0, tmp
       print-string 0, "\n"
       col <- increment
n129'>129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154

























































































































































                                                                                                                                    
enu working' href='/acidbong/suckless/dwm/commit/util.c?h=0.4&id=39677ec76616fe4165ef92afb14db2bef2488e30'>39677ec ^








39677ec ^
adaa28a ^




849e631 ^
adaa28a ^


c47da14 ^
439e15d ^
c47da14 ^
586f663 ^
439e15d ^




16c67f3 ^
586f663 ^
650a1fb ^
439e15d ^

849e631 ^
439e15d ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61