projects
/
dosdemo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0b797aa
)
Fixed typos
author
Michael Georgoulopoulos
<mgeorgoulopoulos@gmail.com>
Fri, 2 Sep 2016 22:51:30 +0000
(
01:51
+0300)
committer
Michael Georgoulopoulos
<mgeorgoulopoulos@gmail.com>
Fri, 2 Sep 2016 22:51:30 +0000
(
01:51
+0300)
src/mike.c
patch
|
blob
|
history
diff --git
a/src/mike.c
b/src/mike.c
index
4f92011
..
fda18fe
100644
(file)
--- a/
src/mike.c
+++ b/
src/mike.c
@@
-121,6
+121,7
@@
static void draw(void)
*dst++ = src[i + scroll + d];
}
src += backgroundW;
*dst++ = src[i + scroll + d];
}
src += backgroundW;
+ disp += backgroundW;
}
}
}
}
@@
-156,7
+157,7
@@
static void processNormal() {
scrollModTable[scanline] = (int) (backgroundW / scale + 0.5f);
for (i = 0; i < backgroundW; i++) {
x = (int)(i * scale + 0.5f);
scrollModTable[scanline] = (int) (backgroundW / scale + 0.5f);
for (i = 0; i < backgroundW; i++) {
x = (int)(i * scale + 0.5f);
- if (x < background) {
+ if (x < backgroundW) {
*dst = (unsigned short)normalmap[x] & 0xFF;
if ((short)*dst > maxDisplacement) maxDisplacement = (short)(*dst);
if ((short)*dst < minDisplacement) minDisplacement = (short)(*dst);
*dst = (unsigned short)normalmap[x] & 0xFF;
if ((short)*dst > maxDisplacement) maxDisplacement = (short)(*dst);
if ((short)*dst < minDisplacement) minDisplacement = (short)(*dst);