1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

renamed ZZ to qpixel_pixel_outside

This commit is contained in:
Zeno Rogue 2017-12-22 21:24:08 +01:00
parent 6234be507b
commit 8a97571cb4
2 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ TTF_Font *font[256];
#if CAP_SDL
SDL_Surface *s;
int ZZ;
int qpixel_pixel_outside;
int& qpixel(SDL_Surface *surf, int x, int y) {
if(x<0 || y<0 || x >= surf->w || y >= surf->h) return ZZ;
if(x<0 || y<0 || x >= surf->w || y >= surf->h) return qpixel_pixel_outside;
char *p = (char*) surf->pixels;
p += y * surf->pitch;
int *pi = (int*) (p);
@ -45,7 +45,7 @@ int& qpixel(SDL_Surface *surf, int x, int y) {
}
int qpixel3(SDL_Surface *surf, int x, int y) {
if(x<0 || y<0 || x >= surf->w || y >= surf->h) return ZZ;
if(x<0 || y<0 || x >= surf->w || y >= surf->h) return qpixel_pixel_outside;
char *p = (char*) surf->pixels;
p += y * surf->pitch;
p += x;

View File

@ -187,7 +187,7 @@ bool readtexture() {
int base_x = tx/2 - origdim/2;
int base_y = ty/2 - origdim/2;
ZZ = 0; // outside is black
qpixel_pixel_outside = 0; // outside is black
vector<int> half_expanded(twidth * ty);
for(int y=0; y<ty; y++)