--- deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/17 20:50:19 1.28 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/19 18:39:08 1.30 @@ -117,6 +117,7 @@ glEnable GL_CONVOLUTION_2D; } + undef $self->{fow_texture};#d# remove $self->{fow_texture} = new CFClient::Texture w => $w, h => $h, @@ -148,17 +149,18 @@ glCallList $self->{list}; glPopMatrix; + # TNT2 emulates logops in software (or worse :) if ($CFClient::UI::FOCUS != $self) { - glColor 64/255, 64/255, 64/255; - glLogicOp GL_AND; - glEnable GL_COLOR_LOGIC_OP; + glColor 0.4, 0.2, 0.2, 0.9; + glEnable GL_BLEND; + glBlendFunc GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA; glBegin GL_QUADS; glVertex 0, 0; glVertex 0, $::HEIGHT; glVertex $::WIDTH, $::HEIGHT; glVertex $::WIDTH, 0; glEnd; - glDisable GL_COLOR_LOGIC_OP; + glDisable GL_BLEND; } }