mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Normalize percent2D
This commit is contained in:
parent
4f514f7058
commit
40710efe18
3 changed files with 36 additions and 36 deletions
10
plotter.cpp
10
plotter.cpp
|
|
@ -714,8 +714,8 @@ CPlotter::resize()
|
|||
};
|
||||
|
||||
m_w = size().width();
|
||||
m_h2 = m_percent2DScreen * (size().height() - 30) / 100.0;
|
||||
m_h1 = size().height() - m_h2;
|
||||
m_h2 = m_percent2D * (size().height() - 30) / 100.0;
|
||||
m_h1 = size().height() - m_h2;
|
||||
|
||||
// We want our 3 main pixmaps sized to occupy our entire height,
|
||||
// and to be completely filled with an opaque color, since we're
|
||||
|
|
@ -922,11 +922,11 @@ CPlotter::setFreq(int const freq)
|
|||
}
|
||||
|
||||
void
|
||||
CPlotter::setPercent2DScreen(int percent2DScreen)
|
||||
CPlotter::setPercent2D(int percent2D)
|
||||
{
|
||||
if (m_percent2DScreen != percent2DScreen)
|
||||
if (m_percent2D != percent2D)
|
||||
{
|
||||
m_percent2DScreen = percent2DScreen;
|
||||
m_percent2D = percent2D;
|
||||
resize();
|
||||
update();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue