Revert "fix(opengl): use Lazarus OpenGLContext"

This reverts commit 004c363df8.
This commit is contained in:
2026-07-08 11:56:09 +03:00
parent 004c363df8
commit ce9cfd730f
6 changed files with 26 additions and 14 deletions
+3 -2
View File
@@ -18,7 +18,7 @@ interface
uses
Classes, SysUtils, Math, Graphics, Controls, ExtCtrls,
OpenGLContext, GL, AppTheme, WDSP;
OpenGLContextEx, GL, AppTheme, WDSP;
type
TWidebandView = class
@@ -1077,7 +1077,8 @@ begin
UploadLabelTextureToGL;
FGLBackgroundDirty := False;
end;
glViewport(0, 0, W, H);
// HiDPI: viewport в физических пикселях FBO, координаты — логические
glViewport(0, 0, Round(W * C.PixelScale), Round(H * C.PixelScale));
glMatrixMode(GL_PROJECTION);
glLoadIdentity;
glOrtho(0, W, 0, H, -1, 1);