From 7ac96996d36bade23dc513637e7bd72bdec76dcb Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 1 Nov 2021 03:37:20 +0000 Subject: [PATCH] Change type of pixptr to const color_palette_index* --- common/texmap/ntmap.cpp | 2 +- common/texmap/texmapl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/texmap/ntmap.cpp b/common/texmap/ntmap.cpp index fa22df84a..dd3c80019 100644 --- a/common/texmap/ntmap.cpp +++ b/common/texmap/ntmap.cpp @@ -59,7 +59,7 @@ unsigned char *write_buffer; fix fx_l, fx_u, fx_v, fx_z, fx_du_dx, fx_dv_dx, fx_dz_dx, fx_dl_dx; int fx_xleft, fx_xright, fx_y; -const unsigned char *pixptr; +const color_palette_index *pixptr; uint8_t Transparency_on = 0; uint8_t tmap_flat_color; diff --git a/common/texmap/texmapl.h b/common/texmap/texmapl.h index 7a603e74c..3d34d7c53 100644 --- a/common/texmap/texmapl.h +++ b/common/texmap/texmapl.h @@ -47,7 +47,7 @@ fix compute_dx_dy(const g3ds_tmap &t, int top_vertex,int bottom_vertex, fix reci void compute_y_bounds(const g3ds_tmap &t, int &vlt, int &vlb, int &vrt, int &vrb,int &bottom_y_ind); extern int fx_y,fx_xleft,fx_xright; -extern const unsigned char *pixptr; +extern const color_palette_index *pixptr; // texture mapper scanline renderers // Interface variables to assembler code extern fix fx_u,fx_v,fx_z,fx_du_dx,fx_dv_dx,fx_dz_dx;