mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-05-31 01:01:12 +00:00
- more compat.h cleanup
Its elimination is getting closer. :)
This commit is contained in:
parent
ec1c42b04a
commit
298949ceb8
23 changed files with 113 additions and 268 deletions
|
@ -317,10 +317,10 @@ static void addquad(int32_t x0, int32_t y0, int32_t z0, int32_t x1, int32_t y1,
|
|||
//Extend borders vertically
|
||||
for (bssize_t yy=0; yy<VOXBORDWIDTH; yy++)
|
||||
{
|
||||
Bmemcpy(&gvox->mytex[(shp[z].y+yy)*gvox->mytexx + shp[z].x],
|
||||
memcpy(&gvox->mytex[(shp[z].y+yy)*gvox->mytexx + shp[z].x],
|
||||
&gvox->mytex[(shp[z].y+VOXBORDWIDTH)*gvox->mytexx + shp[z].x],
|
||||
(x+(VOXBORDWIDTH<<1))<<2);
|
||||
Bmemcpy(&gvox->mytex[(shp[z].y+y+yy+VOXBORDWIDTH)*gvox->mytexx + shp[z].x],
|
||||
memcpy(&gvox->mytex[(shp[z].y+y+yy+VOXBORDWIDTH)*gvox->mytexx + shp[z].x],
|
||||
&gvox->mytex[(shp[z].y+y-1+VOXBORDWIDTH)*gvox->mytexx + shp[z].x],
|
||||
(x+(VOXBORDWIDTH<<1))<<2);
|
||||
}
|
||||
|
@ -863,7 +863,7 @@ voxmodel_t *voxload(const char *filnam)
|
|||
{
|
||||
int32_t is8bit, ret;
|
||||
|
||||
const int32_t i = Bstrlen(filnam)-4;
|
||||
const int32_t i = strlen(filnam)-4;
|
||||
if (i < 0)
|
||||
return NULL;
|
||||
|
||||
|
@ -905,7 +905,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
|
|||
if (!buffer)
|
||||
return NULL;
|
||||
|
||||
Bmemcpy(buffer, kvxbuffer, length);
|
||||
memcpy(buffer, kvxbuffer, length);
|
||||
|
||||
int32_t *longptr = (int32_t*)buffer;
|
||||
|
||||
|
@ -1107,7 +1107,7 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
|
|||
|
||||
//transform to Build coords
|
||||
float omat[16];
|
||||
Bmemcpy(omat, mat, sizeof(omat));
|
||||
memcpy(omat, mat, sizeof(omat));
|
||||
|
||||
f = 1.f/64.f;
|
||||
g = m0.x*f; mat[0] *= g; mat[1] *= g; mat[2] *= g;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue