Commit a96dfa7
committed
rtlib/gfxlib2: Fix RORW() macro for non-x86
It didn't truncate the value to 16bit, causing it to fail when working
with 32bit variables, which is how the gfxlib2 box/line drawing code uses
it. Sooner or later it would start shifting the upper 16bits into the lower
16bit, and eventually end up with all 1's, meaning the <if (style & bit)>
type of checks used by fb_GfxDrawLine() etc. would always be true. Thus it
eventually started drawing all pixels instead of the wanted pattern.
http://www.freebasic.net/forum/viewtopic.php?p=214164#p2141641 parent 10554b9 commit a96dfa7
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
0 commit comments