mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 17:27:32 +00:00
Revert "fix(opengl): use Lazarus OpenGLContext"
This reverts commit 004c363df8.
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user