Skip to content

Commit

Permalink
Merge pull request opentk#1567 from utkumaden/patch-monitor-work-area
Browse files Browse the repository at this point in the history
Fix monitor work area being reported incorrectly.
  • Loading branch information
NogginBops authored Feb 17, 2023
2 parents 5aae224 + 0e109d2 commit efb6ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenTK.Windowing.Desktop/MonitorInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ internal MonitorInfo(MonitorHandle handle)
ClientArea = new Box2i(x, y, x + videoMode->Width, y + videoMode->Height);

GLFW.GetMonitorWorkarea(HandleAsPtr, out int workAreaX, out int workAreaY, out int workAreaWidth, out int workAreaHeight);
WorkArea = new Box2i(workAreaX, workAreaY, workAreaWidth, workAreaHeight);
WorkArea = new Box2i(workAreaX, workAreaY, workAreaX + workAreaWidth, workAreaY + workAreaHeight);

GLFW.GetMonitorPhysicalSize(HandleAsPtr, out int width, out int height);
PhysicalWidth = width;
Expand Down

0 comments on commit efb6ab7

Please sign in to comment.