ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/MapWidget.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/MapWidget.pm (file contents):
Revision 1.28 by root, Wed May 17 20:50:19 2006 UTC vs.
Revision 1.30 by root, Fri May 19 18:39:08 2006 UTC

115 0.05, 0.13, 0.05, 115 0.05, 0.13, 0.05,
116 ); 116 );
117 glEnable GL_CONVOLUTION_2D; 117 glEnable GL_CONVOLUTION_2D;
118 } 118 }
119 119
120 undef $self->{fow_texture};#d# remove
120 $self->{fow_texture} = new CFClient::Texture 121 $self->{fow_texture} = new CFClient::Texture
121 w => $w, 122 w => $w,
122 h => $h, 123 h => $h,
123 data => $data, 124 data => $data,
124 internalformat => GL_ALPHA, 125 internalformat => GL_ALPHA,
146 147
147 glPushMatrix; 148 glPushMatrix;
148 glCallList $self->{list}; 149 glCallList $self->{list};
149 glPopMatrix; 150 glPopMatrix;
150 151
152 # TNT2 emulates logops in software (or worse :)
151 if ($CFClient::UI::FOCUS != $self) { 153 if ($CFClient::UI::FOCUS != $self) {
152 glColor 64/255, 64/255, 64/255; 154 glColor 0.4, 0.2, 0.2, 0.9;
153 glLogicOp GL_AND; 155 glEnable GL_BLEND;
154 glEnable GL_COLOR_LOGIC_OP; 156 glBlendFunc GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA;
155 glBegin GL_QUADS; 157 glBegin GL_QUADS;
156 glVertex 0, 0; 158 glVertex 0, 0;
157 glVertex 0, $::HEIGHT; 159 glVertex 0, $::HEIGHT;
158 glVertex $::WIDTH, $::HEIGHT; 160 glVertex $::WIDTH, $::HEIGHT;
159 glVertex $::WIDTH, 0; 161 glVertex $::WIDTH, 0;
160 glEnd; 162 glEnd;
161 glDisable GL_COLOR_LOGIC_OP; 163 glDisable GL_BLEND;
162 } 164 }
163} 165}
164 166
165my %DIR = ( 167my %DIR = (
166 CFClient::SDLK_KP8, [1, "north"], 168 CFClient::SDLK_KP8, [1, "north"],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines