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