mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +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. |
||
---|---|---|
.. | ||
gl_draw.c | ||
gl_dyn_lights.c | ||
gl_dyn_part.c | ||
gl_dyn_textures.c | ||
gl_fog.c | ||
gl_graph.c | ||
gl_lightmap.c | ||
gl_mod_alias.c | ||
gl_mod_iqm.c | ||
gl_mod_sprite.c | ||
gl_rmain.c | ||
gl_rmisc.c | ||
gl_rsurf.c | ||
gl_screen.c | ||
gl_sky.c | ||
gl_sky_clip.c | ||
gl_textures.c | ||
gl_warp.c | ||
Makefile.am | ||
namehack.h | ||
qfgl_ext.c | ||
vid_common_gl.c | ||
vtxarray.c |