diff options
Diffstat (limited to 'progs')
-rw-r--r-- | progs/redbook/image.c | 2 | ||||
-rw-r--r-- | progs/samples/overlay.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/progs/redbook/image.c b/progs/redbook/image.c index 8e62f5afd35..dc1a7246eba 100644 --- a/progs/redbook/image.c +++ b/progs/redbook/image.c @@ -64,7 +64,7 @@ void makeCheckImage(void) for (i = 0; i < checkImageHeight; i++) { for (j = 0; j < checkImageWidth; j++) { - c = ((((i&0x8)==0)^((j&0x8))==0))*255; + c = (((i&0x8)==0)^((j&0x8)==0))*255; checkImage[i][j][0] = (GLubyte) c; checkImage[i][j][1] = (GLubyte) c; checkImage[i][j][2] = (GLubyte) c; diff --git a/progs/samples/overlay.c b/progs/samples/overlay.c index 0def2b1105e..4542b49a0a7 100644 --- a/progs/samples/overlay.c +++ b/progs/samples/overlay.c @@ -347,7 +347,7 @@ int main(int argc, char **argv) if (!glutLayerGet(GLUT_OVERLAY_POSSIBLE)) { fprintf(stderr, "Overlay not available\n"); - return; + return(1); } if (Args(argc, argv) == GL_FALSE) { |