mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
6e04fd5ff6
The attached patch (against quakeforge git) changes the [con]width, [con]height, and most importantly the rowbytes members of viddef_t from unsigned to signed int, like in q2. This allows for a properly negative vid.rowbytes which may be needed in, e.g. a DIB sections windows driver if needed. Along with it, I changed a few places where unsigned int is used along with comparisons against the relevant vid.* members. One thing I am not 100% sure is the signedness requirements of d_zrowbytes and d_zwidth: q2 has them as unsigned but I am not sure whether that is because they are needed as unsigned or it was just an oversight of the id developers. They do look like they should be OK as signed int to me, though: comments? == Note from Bill Currie: I had to do some extra changes as many signed/unsigned comparisons were somehow missed. |
||
---|---|---|
.. | ||
d_edge.c | ||
d_fill.c | ||
d_init.c | ||
d_modech.c | ||
d_part.c | ||
d_polyse.c | ||
d_scan.c | ||
d_sky.c | ||
d_sprite.c | ||
d_surf.c | ||
d_vars.c | ||
d_zpoint.c | ||
draw.c | ||
Makefile.am | ||
namehack.h | ||
screen.c | ||
sw32_graph.c | ||
sw32_raclip.c | ||
sw32_ralias.c | ||
sw32_rbsp.c | ||
sw32_rdraw.c | ||
sw32_redge.c | ||
sw32_riqm.c | ||
sw32_rmain.c | ||
sw32_rmisc.c | ||
sw32_rpart.c | ||
sw32_rsky.c | ||
sw32_rsprite.c | ||
sw32_rsurf.c | ||
vid_common_sw32.c |