Skip to content

Commit

Permalink
OSDConfigurator: add support for HD layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong13 authored and meee1 committed Jul 7, 2023
1 parent 462eff5 commit 332cc54
Show file tree
Hide file tree
Showing 5 changed files with 387 additions and 317 deletions.
20 changes: 19 additions & 1 deletion ExtLibs/OSDConfigurator/GUI/LayoutControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ public Size CharSize
ReDraw();
}
}

public bool IsHighDef = false;

public Size ScreenSize
{
set
{
Visualizer?.SetScreenSizeChar(value);
ReDraw();
}
}

public LayoutControl()
{
Expand Down Expand Up @@ -120,7 +131,14 @@ private void Draw(object sender, PaintEventArgs e)
if (DesignMode)
return;

Visualizer.DrawBackground(e.Graphics);
if(IsHighDef)
{
Visualizer.DrawHDBackground(e.Graphics);
}
else
{
Visualizer.DrawSDBackground(e.Graphics);
}

if (items != null)
{
Expand Down
Loading

0 comments on commit 332cc54

Please sign in to comment.