void JDisplay::resizeEvent(QResizeEvent *e)
{
  resizeBackBuffer(e->size().width(), e->size().height());
  if (m_width<0)
    m_width = width();
  if (m_height<0)
    m_height = height();
}
Example #2
0
void JDisplay::resizeEvent(QResizeEvent *e)
{
  resizeBackBuffer(e->size().width(), e->size().height());
  if (cfg->sFixed)
  {
    if (m_width<0)
      m_width = cfg->sWidth;
    if (m_height<0)
      m_height = cfg->sHeight;
  }
  else
  {
    if (m_width<0)
      m_width = width();
    if (m_height<0)
      m_height = height();
  }
}