mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-08 01:33:02 +00:00
renamed ZZ to qpixel_pixel_outside
This commit is contained in:
@@ -34,10 +34,10 @@ TTF_Font *font[256];
|
|||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
SDL_Surface *s;
|
SDL_Surface *s;
|
||||||
|
|
||||||
int ZZ;
|
int qpixel_pixel_outside;
|
||||||
|
|
||||||
int& qpixel(SDL_Surface *surf, int x, int y) {
|
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;
|
char *p = (char*) surf->pixels;
|
||||||
p += y * surf->pitch;
|
p += y * surf->pitch;
|
||||||
int *pi = (int*) (p);
|
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) {
|
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;
|
char *p = (char*) surf->pixels;
|
||||||
p += y * surf->pitch;
|
p += y * surf->pitch;
|
||||||
p += x;
|
p += x;
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ bool readtexture() {
|
|||||||
int base_x = tx/2 - origdim/2;
|
int base_x = tx/2 - origdim/2;
|
||||||
int base_y = ty/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);
|
vector<int> half_expanded(twidth * ty);
|
||||||
for(int y=0; y<ty; y++)
|
for(int y=0; y<ty; y++)
|
||||||
|
|||||||
Reference in New Issue
Block a user