X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=bf92c229531d27eacc2a0bb83561c9ed3bcb9dd4;hp=44cf2a40340a3b25c783347052cb517ff3ea3b78;hb=65146e985a7cb6ab434f1bd4594211f09e1a9409;hpb=b5cff7c2adac12d222e098a74583bf99dd531e98 diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 44cf2a4..bf92c22 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -2949,22 +2949,23 @@ begin else a := 0; + glDisable(GL_TEXTURE_2D); + glColor3ub(GetRValue(DotColor), GetGValue(DotColor), GetBValue(DotColor)); + glPointSize(DotSize); + glBegin(GL_POINTS); x := MapOffset.X mod DotStep; - y := MapOffset.Y mod DotStep; - while x < RenderPanel.Width do begin + y := MapOffset.Y mod DotStep; while y < RenderPanel.Height do begin - e_DrawPoint(DotSize, x + a, y + a, - GetRValue(DotColor), - GetGValue(DotColor), - GetBValue(DotColor)); + glVertex2i(x + a, y + a); y += DotStep; end; x += DotStep; - y := MapOffset.Y mod DotStep; end; + glEnd(); + glColor4ub(e_Colors.R, e_Colors.G, e_Colors.B, 255); end; // Превью текстуры: