projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
removed sdl from mikmod cflags, since we dropped SDL from the
[dosdemo]
/
src
/
3dgfx
/
mesh.c
diff --git
a/src/3dgfx/mesh.c
b/src/3dgfx/mesh.c
index
b8bb9c1
..
c40b491
100644
(file)
--- a/
src/3dgfx/mesh.c
+++ b/
src/3dgfx/mesh.c
@@
-364,8
+364,8
@@
int gen_plane_mesh(struct g3d_mesh *m, float width, float height, int usub, int
nfaces = usub * vsub;
uverts = usub + 1;
vverts = vsub + 1;
- du = (float)width / (float)usub;
- dv = (float)height / (float)vsub;
+ du = 1.0f / (float)usub;
+ dv = 1.0f / (float)vsub;
nverts = uverts * vverts;
nidx = nfaces * 4;