X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fendgame.c;h=79e86c1dd3fb34893b2b9ac7e8ce135750e450b7;hp=ecc58b52740eeca5c722cd5b0f128e942dd57e3d;hb=2c902d6065f9856adf31e8540a94f1e42e68e905;hpb=4cecfc89e5e889c7232693897c06168fb378bd5c diff --git a/hacks/glx/endgame.c b/hacks/glx/endgame.c index ecc58b52..79e86c1d 100644 --- a/hacks/glx/endgame.c +++ b/hacks/glx/endgame.c @@ -468,7 +468,7 @@ void draw_chess(ModeInfo *mi) { if(done) glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, - done == 1 ? 1.0+0.1*count : 99.0/count); + ( done == 1 || count == 0 ) ? 1.0+0.1*count : 99.0/count); if(++count == 100) { if(!done) {