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
+4 -2
View File
@@ -16,7 +16,7 @@ interface
uses
Classes, SysUtils, Graphics, Controls, Math, Types,
OpenGLContext, GL,
OpenGLContextEx, GL,
AppTheme, SpectrumView, VfoOverlay, BandPlanOverlay,
WaterfallView, WaterfallViewOpengl;
@@ -980,7 +980,9 @@ begin
H := FGLControl.Height;
if (W <= 0) or (H <= 0) then Exit;
glViewport(0, 0, W, H);
// HiDPI: viewport в физических пикселях FBO, координаты — логические
glViewport(0, 0, Round(W * FGLControl.PixelScale),
Round(H * FGLControl.PixelScale));
glMatrixMode(GL_PROJECTION);
glLoadIdentity;
glOrtho(0, W, H, 0, -1, 1);