View | Details | Raw Unified
Collapse All | Expand All

(-) fglrx_panel_sources.orig/AdjustPage.cpp (-41 / +41 lines)
 Lines 23-29    Link Here 
#endif // DEBUG
#endif // DEBUG
AdjustPage::AdjustPage ( QWidget *parent, int CurMonitor ) : QWidget ( parent, (const char *)0 )
AdjustPage::AdjustPage ( QWidget *parent, int CurMonitor ) : QWidget ( parent,  reinterpret_cast<const char *>(0) )
{
{
  m_CurMonitor = CurMonitor ;
  m_CurMonitor = CurMonitor ;
  m_Init = FALSE ;
  m_Init = FALSE ;
 Lines 185-207    Link Here 
  pColorBlue->setFrameStyle ( QFrame::Panel | QFrame::Sunken ) ;
  pColorBlue->setFrameStyle ( QFrame::Panel | QFrame::Sunken ) ;
  pColorBlue->setBackgroundColor ( Qt::blue ) ;
  pColorBlue->setBackgroundColor ( Qt::blue ) ;
  pSliderRed = new QSlider ( (int)(GAMMA_MIN*100), (int)(GAMMA_MAX*100), 30, 100, QSlider::Horizontal, this) ;
  pSliderRed = new QSlider ( static_cast<int>(GAMMA_MIN*100), static_cast<int>(GAMMA_MAX*100), 30, 100, QSlider::Horizontal, this) ;
  pSliderRed->setGeometry ( 120, 230, 150, 25 ) ;
  pSliderRed->setGeometry ( 120, 230, 150, 25 ) ;
  pSliderRed->setTickmarks ( (QSlider::TickSetting)2 ) ; //Below
  pSliderRed->setTickmarks ( static_cast<QSlider::TickSetting>(2) ) ; //Below
  pSliderRed->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderRed->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderRed->setBackgroundPixmap ( pixmap ) ;
  pSliderRed->setBackgroundPixmap ( pixmap ) ;
  pSliderRed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderRed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderGreen = new QSlider ( (int)(GAMMA_MIN*100), (int)(GAMMA_MAX*100), 30, 100, QSlider::Horizontal, this) ;
  pSliderGreen = new QSlider ( static_cast<int>(GAMMA_MIN*100), static_cast<int>(GAMMA_MAX*100), 30, 100, QSlider::Horizontal, this) ;
  pSliderGreen->setGeometry ( 120, 265, 150, 25 ) ;
  pSliderGreen->setGeometry ( 120, 265, 150, 25 ) ;
  pSliderGreen->setTickmarks ( (QSlider::TickSetting)2 ) ; //Below
  pSliderGreen->setTickmarks ( static_cast<QSlider::TickSetting>(2) ) ; //Below
  pSliderGreen->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderGreen->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderGreen->setBackgroundPixmap ( pixmap ) ;
  pSliderGreen->setBackgroundPixmap ( pixmap ) ;
  pSliderGreen->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderGreen->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderBlue = new QSlider ( (int)(GAMMA_MIN*100), (int)(GAMMA_MAX*100), 30, 100, QSlider::Horizontal, this) ;
  pSliderBlue = new QSlider ( static_cast<int>(GAMMA_MIN*100), static_cast<int>(GAMMA_MAX*100), 30, 100, QSlider::Horizontal, this) ;
  pSliderBlue->setGeometry ( 120, 300, 150, 25 ) ;
  pSliderBlue->setGeometry ( 120, 300, 150, 25 ) ;
  pSliderBlue->setTickmarks ( (QSlider::TickSetting)2 ) ; //Below
  pSliderBlue->setTickmarks ( static_cast<QSlider::TickSetting>(2) ) ; //Below
  pSliderBlue->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderBlue->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderBlue->setBackgroundPixmap ( pixmap ) ;
  pSliderBlue->setBackgroundPixmap ( pixmap ) ;
  pSliderBlue->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderBlue->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
 Lines 310-322    Link Here 
#endif // FGL_LATER
#endif // FGL_LATER
  ReadGamma ( ) ;
  ReadGamma ( ) ;
  m_CurGamma = m_Gamma ;
  m_CurGamma = m_Gamma ;
  pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
  pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.red ) ;
  Str.sprintf ( "%.2f", m_Gamma.red ) ;
  pTextRed->setText ( Str ) ;
  pTextRed->setText ( Str ) ;
  pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
  pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.green ) ;
  Str.sprintf ( "%.2f", m_Gamma.green ) ;
  pTextGreen->setText ( Str ) ;
  pTextGreen->setText ( Str ) ;
  pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
  pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.blue ) ;
  Str.sprintf ( "%.2f", m_Gamma.blue ) ;
  pTextBlue->setText ( Str ) ;
  pTextBlue->setText ( Str ) ;
}
}
 Lines 362-376    Link Here 
      {
      {
          if (!(m_CurMonitor))
          if (!(m_CurMonitor))
          {
          {
            m_Gamma.red   = ((float)((DriverData.ulGamma1 >> 20) & 0x3FF)) / 100;
            m_Gamma.red   = static_cast<float>((DriverData.ulGamma1 >> 20) & 0x3FF) / 100;
            m_Gamma.green = ((float)((DriverData.ulGamma1 >> 10) & 0x3FF)) / 100;
            m_Gamma.green = static_cast<float>((DriverData.ulGamma1 >> 10) & 0x3FF) / 100;
            m_Gamma.blue  = ((float)( DriverData.ulGamma1        & 0x3FF)) / 100;
            m_Gamma.blue  = static_cast<float>( DriverData.ulGamma1        & 0x3FF) / 100;
          }
          }
          else
          else
          {
          {
            m_Gamma.red   = ((float)((DriverData.ulGamma2 >> 20) & 0x3FF)) / 100;
            m_Gamma.red   = static_cast<float>((DriverData.ulGamma2 >> 20) & 0x3FF) / 100;
            m_Gamma.green = ((float)((DriverData.ulGamma2 >> 10) & 0x3FF)) / 100;
            m_Gamma.green = static_cast<float>((DriverData.ulGamma2 >> 10) & 0x3FF) / 100;
            m_Gamma.blue  = ((float)( DriverData.ulGamma2        & 0x3FF)) / 100;
            m_Gamma.blue  = static_cast<float>( DriverData.ulGamma2        & 0x3FF) / 100;
          }
          }
#if 0
#if 0
          DEB(printf ("=== DriverData.ulGamma1 0x%08lx .ulGamma2 0x%08lx ===\n",
          DEB(printf ("=== DriverData.ulGamma1 0x%08lx .ulGamma2 0x%08lx ===\n",
 Lines 408-414    Link Here 
                m_Timings.hdisplay,
                m_Timings.hdisplay,
                m_Timings.vdisplay,
                m_Timings.vdisplay,
                (int)(((1000.0*(double)m_DotClock)/m_Timings.htotal)/m_Timings.vtotal + 0.5)
                static_cast<int>(((1000.0*static_cast<double>(m_DotClock))/m_Timings.htotal)/m_Timings.vtotal + 0.5)
             ) ;
             ) ;
  pMonitorBox->setTitle ( Str ) ;
  pMonitorBox->setTitle ( Str ) ;
 Lines 623-629    Link Here 
  float   CurGamma, DeltaGamma ;
  float   CurGamma, DeltaGamma ;
  QString Str ;
  QString Str ;
  CurGamma = ((float)Value) / 100 ;
  CurGamma = static_cast<float>(Value) / 100 ;
  if ( CurGamma == m_Gamma.red ) return ;
  if ( CurGamma == m_Gamma.red ) return ;
  if ( CurGamma < GAMMA_MIN ) CurGamma = GAMMA_MIN ;
  if ( CurGamma < GAMMA_MIN ) CurGamma = GAMMA_MIN ;
  if ( CurGamma > GAMMA_MAX ) CurGamma = GAMMA_MAX ;
  if ( CurGamma > GAMMA_MAX ) CurGamma = GAMMA_MAX ;
 Lines 635-648    Link Here 
    m_Gamma.green += DeltaGamma ;
    m_Gamma.green += DeltaGamma ;
    if ( m_Gamma.green < GAMMA_MIN ) m_Gamma.green = GAMMA_MIN ;
    if ( m_Gamma.green < GAMMA_MIN ) m_Gamma.green = GAMMA_MIN ;
    if ( m_Gamma.green > GAMMA_MAX ) m_Gamma.green = GAMMA_MAX ;
    if ( m_Gamma.green > GAMMA_MAX ) m_Gamma.green = GAMMA_MAX ;
    pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
    pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    pTextGreen->setText ( Str ) ;
    pTextGreen->setText ( Str ) ;
    m_Gamma.blue += DeltaGamma ;
    m_Gamma.blue += DeltaGamma ;
    if ( m_Gamma.blue < GAMMA_MIN ) m_Gamma.blue = GAMMA_MIN ;
    if ( m_Gamma.blue < GAMMA_MIN ) m_Gamma.blue = GAMMA_MIN ;
    if ( m_Gamma.blue > GAMMA_MAX ) m_Gamma.blue = GAMMA_MAX ;
    if ( m_Gamma.blue > GAMMA_MAX ) m_Gamma.blue = GAMMA_MAX ;
    pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
    pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    pTextBlue->setText ( Str ) ;
    pTextBlue->setText ( Str ) ;
  }
  }
 Lines 657-663    Link Here 
  float   CurGamma, DeltaGamma ;
  float   CurGamma, DeltaGamma ;
  QString Str ;
  QString Str ;
  CurGamma = ((float)Value) / 100 ;
  CurGamma = static_cast<float>(Value) / 100 ;
  if ( CurGamma == m_Gamma.green ) return ;
  if ( CurGamma == m_Gamma.green ) return ;
  if ( CurGamma < GAMMA_MIN ) CurGamma = GAMMA_MIN ;
  if ( CurGamma < GAMMA_MIN ) CurGamma = GAMMA_MIN ;
  if ( CurGamma > GAMMA_MAX ) CurGamma = GAMMA_MAX ;
  if ( CurGamma > GAMMA_MAX ) CurGamma = GAMMA_MAX ;
 Lines 669-682    Link Here 
    m_Gamma.red += DeltaGamma ;
    m_Gamma.red += DeltaGamma ;
    if ( m_Gamma.red < GAMMA_MIN ) m_Gamma.red = GAMMA_MIN ;
    if ( m_Gamma.red < GAMMA_MIN ) m_Gamma.red = GAMMA_MIN ;
    if ( m_Gamma.red > GAMMA_MAX ) m_Gamma.red = GAMMA_MAX ;
    if ( m_Gamma.red > GAMMA_MAX ) m_Gamma.red = GAMMA_MAX ;
    pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
    pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    pTextRed->setText ( Str ) ;
    pTextRed->setText ( Str ) ;
    m_Gamma.blue += DeltaGamma ;
    m_Gamma.blue += DeltaGamma ;
    if ( m_Gamma.blue < GAMMA_MIN ) m_Gamma.blue = GAMMA_MIN ;
    if ( m_Gamma.blue < GAMMA_MIN ) m_Gamma.blue = GAMMA_MIN ;
    if ( m_Gamma.blue > GAMMA_MAX ) m_Gamma.blue = GAMMA_MAX ;
    if ( m_Gamma.blue > GAMMA_MAX ) m_Gamma.blue = GAMMA_MAX ;
    pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
    pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    pTextBlue->setText ( Str ) ;
    pTextBlue->setText ( Str ) ;
  }
  }
 Lines 691-697    Link Here 
  float   CurGamma, DeltaGamma ;
  float   CurGamma, DeltaGamma ;
  QString Str ;
  QString Str ;
  CurGamma = ((float)Value) / 100 ;
  CurGamma = static_cast<float>(Value) / 100 ;
  if ( CurGamma == m_Gamma.blue ) return ;
  if ( CurGamma == m_Gamma.blue ) return ;
  if ( CurGamma < GAMMA_MIN ) CurGamma = GAMMA_MIN ;
  if ( CurGamma < GAMMA_MIN ) CurGamma = GAMMA_MIN ;
  if ( CurGamma > GAMMA_MAX ) CurGamma = GAMMA_MAX ;
  if ( CurGamma > GAMMA_MAX ) CurGamma = GAMMA_MAX ;
 Lines 703-716    Link Here 
    m_Gamma.red += DeltaGamma ;
    m_Gamma.red += DeltaGamma ;
    if ( m_Gamma.red < GAMMA_MIN ) m_Gamma.red = GAMMA_MIN ;
    if ( m_Gamma.red < GAMMA_MIN ) m_Gamma.red = GAMMA_MIN ;
    if ( m_Gamma.red > GAMMA_MAX ) m_Gamma.red = GAMMA_MAX ;
    if ( m_Gamma.red > GAMMA_MAX ) m_Gamma.red = GAMMA_MAX ;
    pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
    pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    pTextRed->setText ( Str ) ;
    pTextRed->setText ( Str ) ;
    m_Gamma.green += DeltaGamma ;
    m_Gamma.green += DeltaGamma ;
    if ( m_Gamma.green < GAMMA_MIN ) m_Gamma.green = GAMMA_MIN ;
    if ( m_Gamma.green < GAMMA_MIN ) m_Gamma.green = GAMMA_MIN ;
    if ( m_Gamma.green > GAMMA_MAX ) m_Gamma.green = GAMMA_MAX ;
    if ( m_Gamma.green > GAMMA_MAX ) m_Gamma.green = GAMMA_MAX ;
    pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
    pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    pTextGreen->setText ( Str ) ;
    pTextGreen->setText ( Str ) ;
  }
  }
 Lines 728-745    Link Here 
  if ( pCouple->isChecked() )
  if ( pCouple->isChecked() )
  {
  {
    m_Gamma.green = GAMMA_DEFAULT ;
    m_Gamma.green = GAMMA_DEFAULT ;
    pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
    pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    pTextGreen->setText ( Str ) ;
    pTextGreen->setText ( Str ) ;
    m_Gamma.blue = GAMMA_DEFAULT ;
    m_Gamma.blue = GAMMA_DEFAULT ;
    pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
    pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    pTextBlue->setText ( Str ) ;
    pTextBlue->setText ( Str ) ;
  }
  }
  
  
  InvokeGammaCorrection ( ) ;
  InvokeGammaCorrection ( ) ;
  pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
  pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.red ) ;
  Str.sprintf ( "%.2f", m_Gamma.red ) ;
  pTextRed->setText ( Str ) ;
  pTextRed->setText ( Str ) ;
}
}
 Lines 753-770    Link Here 
  if ( pCouple->isChecked() )
  if ( pCouple->isChecked() )
  {
  {
    m_Gamma.red = GAMMA_DEFAULT ;
    m_Gamma.red = GAMMA_DEFAULT ;
    pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
    pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    pTextRed->setText ( Str ) ;
    pTextRed->setText ( Str ) ;
    m_Gamma.blue = GAMMA_DEFAULT ;
    m_Gamma.blue = GAMMA_DEFAULT ;
    pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
    pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    Str.sprintf ( "%.2f", m_Gamma.blue ) ;
    pTextBlue->setText ( Str ) ;
    pTextBlue->setText ( Str ) ;
  }
  }
  
  
  InvokeGammaCorrection ( ) ;
  InvokeGammaCorrection ( ) ;
  pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
  pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.green ) ;
  Str.sprintf ( "%.2f", m_Gamma.green ) ;
  pTextGreen->setText ( Str ) ;
  pTextGreen->setText ( Str ) ;
 Lines 778-795    Link Here 
  if ( pCouple->isChecked() )
  if ( pCouple->isChecked() )
  {
  {
    m_Gamma.red = GAMMA_DEFAULT ;
    m_Gamma.red = GAMMA_DEFAULT ;
    pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
    pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    Str.sprintf ( "%.2f", m_Gamma.red ) ;
    pTextRed->setText ( Str ) ;
    pTextRed->setText ( Str ) ;
    m_Gamma.green = GAMMA_DEFAULT ;
    m_Gamma.green = GAMMA_DEFAULT ;
    pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
    pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    Str.sprintf ( "%.2f", m_Gamma.green ) ;
    pTextGreen->setText ( Str ) ;
    pTextGreen->setText ( Str ) ;
  }
  }
  
  
  InvokeGammaCorrection ( ) ;
  InvokeGammaCorrection ( ) ;
  pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
  pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.blue ) ;
  Str.sprintf ( "%.2f", m_Gamma.blue ) ;
  pTextBlue->setText ( Str ) ;
  pTextBlue->setText ( Str ) ;
}
}
 Lines 815-823    Link Here 
  {
  {
    GammaSettings.Monitor = m_CurMonitor;
    GammaSettings.Monitor = m_CurMonitor;
    GammaSettings.ulGamma = 
    GammaSettings.ulGamma = 
        (unsigned long) ((((unsigned long)(m_Gamma.red   * 100)) << 20 ) |
        (static_cast<unsigned long>(m_Gamma.red   * 100) << 20 ) |
                         (((unsigned long)(m_Gamma.green * 100)) << 10 ) |
                         (static_cast<unsigned long>(m_Gamma.green * 100) << 10 ) |
                         (((unsigned long)(m_Gamma.blue * 100))));
                         (static_cast<unsigned long>(m_Gamma.blue * 100));
    RetC = ExtSetGamma(&GammaSettings);
    RetC = ExtSetGamma(&GammaSettings);
  }
  }
 Lines 872-884    Link Here 
#endif // FGL_LATER
#endif // FGL_LATER
  //reset Gamma
  //reset Gamma
  m_Gamma = m_CurGamma ;
  m_Gamma = m_CurGamma ;
  pSliderRed->setValue ( (int)(m_Gamma.red*100) ) ;
  pSliderRed->setValue ( static_cast<int>(m_Gamma.red*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.red ) ;
  Str.sprintf ( "%.2f", m_Gamma.red ) ;
  pTextRed->setText ( Str ) ;
  pTextRed->setText ( Str ) ;
  pSliderGreen->setValue ( (int)(m_Gamma.green*100) ) ;
  pSliderGreen->setValue ( static_cast<int>(m_Gamma.green*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.green ) ;
  Str.sprintf ( "%.2f", m_Gamma.green ) ;
  pTextGreen->setText ( Str ) ;
  pTextGreen->setText ( Str ) ;
  pSliderBlue->setValue ( (int)(m_Gamma.blue*100) ) ;
  pSliderBlue->setValue ( static_cast<int>(m_Gamma.blue*100) ) ;
  Str.sprintf ( "%.2f", m_Gamma.blue ) ;
  Str.sprintf ( "%.2f", m_Gamma.blue ) ;
  pTextBlue->setText ( Str ) ;
  pTextBlue->setText ( Str ) ;
  InvokeGammaCorrection ( ) ;
  InvokeGammaCorrection ( ) ;
(-) fglrx_panel_sources.orig/DualScreenPage.cpp (-1 / +1 lines)
 Lines 25-31    Link Here 
#endif // DEBUG
#endif // DEBUG
DualScreenPage::DualScreenPage ( QWidget *parent ) : QWidget ( parent, (const char *)0 )
DualScreenPage::DualScreenPage ( QWidget *parent ) : QWidget ( parent, reinterpret_cast<const char *>(0) )
{
{
  m_Init = FALSE ;
  m_Init = FALSE ;
  m_Changed = FALSE ;
  m_Changed = FALSE ;
(-) fglrx_panel_sources.orig/InfoPage.cpp (-33 / +33 lines)
 Lines 2-8    Link Here 
#include "watermark.xpm"
#include "watermark.xpm"
#include "atilogo.xpm"
#include "atilogo.xpm"
InfoPage::InfoPage ( QWidget *parent, bool is_firegl ) : QWidget ( parent, (const char *)0 )
InfoPage::InfoPage ( QWidget *parent, bool is_firegl ) : QWidget ( parent, reinterpret_cast<const char *>(0) )
{
{
  m_Init = FALSE ;
  m_Init = FALSE ;
  m_IsFireGL = is_firegl;
  m_IsFireGL = is_firegl;
 Lines 38-44    Link Here 
 if( m_IsFireGL )
 if( m_IsFireGL )
 {
 {
  // ========
  // ========
  BInfo = new QLabel ( tr("Display Adapter"), (QWidget *)this ) ;
  BInfo = new QLabel ( tr("Display Adapter"), reinterpret_cast<QWidget *>(this) ) ;
//  BInfo->setFont (QFont( "Helvetica", 18 ) ) ;
//  BInfo->setFont (QFont( "Helvetica", 18 ) ) ;
  BInfo->setGeometry ( 10, 10, 300, 20 ) ;
  BInfo->setGeometry ( 10, 10, 300, 20 ) ;
  BInfo->setAutoResize ( TRUE ) ;
  BInfo->setAutoResize ( TRUE ) ;
 Lines 46-52    Link Here 
  BInfo->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  BInfo->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  BInfo->show ( ) ;
  BInfo->show ( ) ;
  CardName = new QLabel ( tr("Card Name :"), (QWidget *)this ) ;
  CardName = new QLabel ( tr("Card Name :"), reinterpret_cast<QWidget *>(this) ) ;
  CardName->setGeometry ( 20, 35, 300, 20 ) ;
  CardName->setGeometry ( 20, 35, 300, 20 ) ;
  CardName->setAutoResize ( TRUE ) ;
  CardName->setAutoResize ( TRUE ) ;
 Lines 54-60    Link Here 
  CardName->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  CardName->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  CardName->show ( ) ;
  CardName->show ( ) ;
  CardName1 = new QLabel ( BoardInfo.BoardName ( ), (QWidget *)this ) ;
  CardName1 = new QLabel ( BoardInfo.BoardName ( ), reinterpret_cast<QWidget *>(this) ) ;
  CardName1->setGeometry ( 180, 35, 200, 20 ) ;
  CardName1->setGeometry ( 180, 35, 200, 20 ) ;
  CardName1->setAutoResize ( TRUE ) ;
  CardName1->setAutoResize ( TRUE ) ;
  CardName1->setBackgroundPixmap ( pixmap ) ;
  CardName1->setBackgroundPixmap ( pixmap ) ;
 Lines 62-75    Link Here 
  CardName1->show ( ) ;
  CardName1->show ( ) ;
  BiosVersion = new QLabel ( tr("BIOS Version :"), (QWidget *)this ) ;
  BiosVersion = new QLabel ( tr("BIOS Version :"), reinterpret_cast<QWidget *>(this) ) ;
  BiosVersion->setGeometry ( 20, 55, 300, 20 ) ;
  BiosVersion->setGeometry ( 20, 55, 300, 20 ) ;
  BiosVersion->setAutoResize ( TRUE ) ;
  BiosVersion->setAutoResize ( TRUE ) ;
  BiosVersion->setBackgroundPixmap ( pixmap ) ;
  BiosVersion->setBackgroundPixmap ( pixmap ) ;
  BiosVersion->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  BiosVersion->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  BiosVersion->show ( ) ;
  BiosVersion->show ( ) ;
  BiosVersion1 = new QLabel ( BoardInfo.BiosVersion ( ), (QWidget *)this ) ;
  BiosVersion1 = new QLabel ( BoardInfo.BiosVersion ( ), reinterpret_cast<QWidget *>(this) ) ;
  BiosVersion1->setGeometry ( 180, 55, 300, 20 ) ;
  BiosVersion1->setGeometry ( 180, 55, 300, 20 ) ;
  BiosVersion1->setAutoResize ( TRUE ) ;
  BiosVersion1->setAutoResize ( TRUE ) ;
  BiosVersion1->setBackgroundPixmap ( pixmap ) ;
  BiosVersion1->setBackgroundPixmap ( pixmap ) ;
 Lines 77-90    Link Here 
  BiosVersion1->show ( ) ;
  BiosVersion1->show ( ) ;
  ChipType = new QLabel ( tr("Chip Type :"), (QWidget *)this ) ;
  ChipType = new QLabel ( tr("Chip Type :"), reinterpret_cast<QWidget *>(this) ) ;
  ChipType->setGeometry ( 20, 75, 300, 20 ) ;
  ChipType->setGeometry ( 20, 75, 300, 20 ) ;
  ChipType->setAutoResize ( TRUE ) ;
  ChipType->setAutoResize ( TRUE ) ;
  ChipType->setBackgroundPixmap ( pixmap ) ;
  ChipType->setBackgroundPixmap ( pixmap ) ;
  ChipType->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  ChipType->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  ChipType->show ( ) ;
  ChipType->show ( ) ;
  ChipType1 = new QLabel ( BoardInfo.ChipType ( ), (QWidget *)this ) ;
  ChipType1 = new QLabel ( BoardInfo.ChipType ( ), reinterpret_cast<QWidget *>(this) ) ;
  ChipType1->setGeometry ( 180, 75, 300, 20 ) ;
  ChipType1->setGeometry ( 180, 75, 300, 20 ) ;
  ChipType1->setAutoResize ( TRUE ) ;
  ChipType1->setAutoResize ( TRUE ) ;
  ChipType1->setBackgroundPixmap ( pixmap ) ;
  ChipType1->setBackgroundPixmap ( pixmap ) ;
 Lines 92-105    Link Here 
  ChipType1->show ( ) ;
  ChipType1->show ( ) ;
  ChipRevision = new QLabel ( tr("Chip Revision :"), (QWidget *)this ) ;
  ChipRevision = new QLabel ( tr("Chip Revision :"), reinterpret_cast<QWidget *>(this) ) ;
  ChipRevision->setGeometry ( 20, 95, 300, 20 ) ;
  ChipRevision->setGeometry ( 20, 95, 300, 20 ) ;
  ChipRevision->setAutoResize ( TRUE ) ;
  ChipRevision->setAutoResize ( TRUE ) ;
  ChipRevision->setBackgroundPixmap ( pixmap ) ;
  ChipRevision->setBackgroundPixmap ( pixmap ) ;
  ChipRevision->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  ChipRevision->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  ChipRevision->show ( ) ;
  ChipRevision->show ( ) ;
  ChipRevision1 = new QLabel ( BoardInfo.ChipRevision ( ), (QWidget *)this ) ;
  ChipRevision1 = new QLabel ( BoardInfo.ChipRevision ( ), reinterpret_cast<QWidget *>(this) ) ;
  ChipRevision1->setGeometry ( 180, 95, 300, 20 ) ;
  ChipRevision1->setGeometry ( 180, 95, 300, 20 ) ;
  ChipRevision1->setAutoResize ( TRUE ) ;
  ChipRevision1->setAutoResize ( TRUE ) ;
  ChipRevision1->setBackgroundPixmap ( pixmap ) ;
  ChipRevision1->setBackgroundPixmap ( pixmap ) ;
 Lines 107-120    Link Here 
  ChipRevision1->show ( ) ;
  ChipRevision1->show ( ) ;
#if 0
#if 0
  ChipSpeed = new QLabel ( tr("Chip Speed :"), (QWidget *)this ) ;
  ChipSpeed = new QLabel ( tr("Chip Speed :"), reinterpret_cast<QWidget *>(this) ) ;
  ChipSpeed->setGeometry ( 20, 120, 300, 20 ) ;
  ChipSpeed->setGeometry ( 20, 120, 300, 20 ) ;
  ChipSpeed->setAutoResize ( TRUE ) ;
  ChipSpeed->setAutoResize ( TRUE ) ;
  ChipSpeed->setBackgroundPixmap ( pixmap ) ;
  ChipSpeed->setBackgroundPixmap ( pixmap ) ;
  ChipSpeed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  ChipSpeed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  ChipSpeed->show ( ) ;
  ChipSpeed->show ( ) ;
  ChipSpeed1 = new QLabel ( BoardInfo.ChipSpeed ( ), (QWidget *)this ) ;
  ChipSpeed1 = new QLabel ( BoardInfo.ChipSpeed ( ), reinterpret_cast<QWidget *>(this) ) ;
  ChipSpeed1->setGeometry ( 180, 120, 300, 20 ) ;
  ChipSpeed1->setGeometry ( 180, 120, 300, 20 ) ;
  ChipSpeed1->setAutoResize ( TRUE ) ;
  ChipSpeed1->setAutoResize ( TRUE ) ;
  ChipSpeed1->setBackgroundPixmap ( pixmap ) ;
  ChipSpeed1->setBackgroundPixmap ( pixmap ) ;
 Lines 122-128    Link Here 
  ChipSpeed1->show ( ) ;
  ChipSpeed1->show ( ) ;
#endif
#endif
  DacSpeed = new QLabel ( tr("DAC Speed :"), (QWidget *)this ) ;
  DacSpeed = new QLabel ( tr("DAC Speed :"), reinterpret_cast<QWidget *>(this) ) ;
  // DacSpeed->setGeometry ( 20, 140, 300, 20 ) ;
  // DacSpeed->setGeometry ( 20, 140, 300, 20 ) ;
  DacSpeed->setGeometry ( 20, 115, 300, 20 ) ;
  DacSpeed->setGeometry ( 20, 115, 300, 20 ) ;
  DacSpeed->setAutoResize ( TRUE ) ;
  DacSpeed->setAutoResize ( TRUE ) ;
 Lines 130-136    Link Here 
  DacSpeed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  DacSpeed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  DacSpeed->show ( ) ;
  DacSpeed->show ( ) ;
  DacSpeed1 = new QLabel ( BoardInfo.DacSpeed ( ), (QWidget *)this ) ;
  DacSpeed1 = new QLabel ( BoardInfo.DacSpeed ( ), reinterpret_cast<QWidget *>(this) ) ;
  // DacSpeed1->setGeometry ( 180, 140, 300, 20 ) ;
  // DacSpeed1->setGeometry ( 180, 140, 300, 20 ) ;
  DacSpeed1->setGeometry ( 180, 115, 300, 20 ) ;
  DacSpeed1->setGeometry ( 180, 115, 300, 20 ) ;
  DacSpeed1->setAutoResize ( TRUE ) ;
  DacSpeed1->setAutoResize ( TRUE ) ;
 Lines 139-145    Link Here 
  DacSpeed1->show ( ) ;
  DacSpeed1->show ( ) ;
  MemoryType = new QLabel ( tr("Memory Type :"), (QWidget *)this ) ;
  MemoryType = new QLabel ( tr("Memory Type :"), reinterpret_cast<QWidget *>(this) ) ;
  // MemoryType->setGeometry ( 20, 160, 300, 20 ) ;
  // MemoryType->setGeometry ( 20, 160, 300, 20 ) ;
  MemoryType->setGeometry ( 20, 135, 300, 20 ) ;
  MemoryType->setGeometry ( 20, 135, 300, 20 ) ;
  MemoryType->setAutoResize ( TRUE ) ;
  MemoryType->setAutoResize ( TRUE ) ;
 Lines 147-153    Link Here 
  MemoryType->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemoryType->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemoryType->show ( ) ;
  MemoryType->show ( ) ;
  MemoryType1 = new QLabel ( BoardInfo.MemoryType ( ), (QWidget *)this ) ;
  MemoryType1 = new QLabel ( BoardInfo.MemoryType ( ), reinterpret_cast<QWidget *>(this) ) ;
  // MemoryType1->setGeometry ( 180, 160, 300, 20 ) ;
  // MemoryType1->setGeometry ( 180, 160, 300, 20 ) ;
  MemoryType1->setGeometry ( 180, 135, 300, 20 ) ;
  MemoryType1->setGeometry ( 180, 135, 300, 20 ) ;
  MemoryType1->setAutoResize ( TRUE ) ;
  MemoryType1->setAutoResize ( TRUE ) ;
 Lines 155-161    Link Here 
  MemoryType1->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemoryType1->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemoryType1->show ( ) ;
  MemoryType1->show ( ) ;
  MemorySize = new QLabel ( tr("Memory Size :"), (QWidget *)this ) ;
  MemorySize = new QLabel ( tr("Memory Size :"), reinterpret_cast<QWidget *>(this) ) ;
  // MemorySize->setGeometry ( 20, 180, 300, 20 ) ;
  // MemorySize->setGeometry ( 20, 180, 300, 20 ) ;
  MemorySize->setGeometry ( 20, 155, 300, 20 ) ;
  MemorySize->setGeometry ( 20, 155, 300, 20 ) ;
  MemorySize->setAutoResize ( TRUE ) ;
  MemorySize->setAutoResize ( TRUE ) ;
 Lines 163-169    Link Here 
  MemorySize->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemorySize->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemorySize->show ( ) ;
  MemorySize->show ( ) ;
  MemorySize1 = new QLabel ( BoardInfo.MemorySize ( ), (QWidget *)this ) ;
  MemorySize1 = new QLabel ( BoardInfo.MemorySize ( ), reinterpret_cast<QWidget *>(this) ) ;
  // MemorySize1->setGeometry ( 180, 180, 300, 20 ) ;
  // MemorySize1->setGeometry ( 180, 180, 300, 20 ) ;
  MemorySize1->setGeometry ( 180, 155, 300, 20 ) ;
  MemorySize1->setGeometry ( 180, 155, 300, 20 ) ;
  MemorySize1->setAutoResize ( TRUE ) ;
  MemorySize1->setAutoResize ( TRUE ) ;
 Lines 172-185    Link Here 
  MemorySize1->show ( ) ;
  MemorySize1->show ( ) ;
#if 0
#if 0
  MemorySpeed = new QLabel ( tr("Memory Speed :"), (QWidget *)this ) ;
  MemorySpeed = new QLabel ( tr("Memory Speed :"), reinterpret_cast<QWidget *>(this) ) ;
  MemorySpeed->setGeometry ( 20, 200, 300, 20 ) ;
  MemorySpeed->setGeometry ( 20, 200, 300, 20 ) ;
  MemorySpeed->setAutoResize ( TRUE ) ;
  MemorySpeed->setAutoResize ( TRUE ) ;
  MemorySpeed->setBackgroundPixmap ( pixmap ) ;
  MemorySpeed->setBackgroundPixmap ( pixmap ) ;
  MemorySpeed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemorySpeed->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  MemorySpeed->show ( ) ;
  MemorySpeed->show ( ) ;
  MemorySpeed1 = new QLabel ( BoardInfo.MemorySpeed ( ), (QWidget *)this ) ;
  MemorySpeed1 = new QLabel ( BoardInfo.MemorySpeed ( ), reinterpret_cast<QWidget *>(this) ) ;
  MemorySpeed1->setGeometry ( 180, 200, 300, 20 ) ;
  MemorySpeed1->setGeometry ( 180, 200, 300, 20 ) ;
  MemorySpeed1->setAutoResize ( TRUE ) ;
  MemorySpeed1->setAutoResize ( TRUE ) ;
  MemorySpeed1->setBackgroundPixmap ( pixmap ) ;
  MemorySpeed1->setBackgroundPixmap ( pixmap ) ;
 Lines 187-200    Link Here 
  MemorySpeed1->show ( ) ;
  MemorySpeed1->show ( ) ;
#endif
#endif
  TransferMode = new QLabel ( tr("Transfer Mode :"), (QWidget *)this ) ;
  TransferMode = new QLabel ( tr("Transfer Mode :"), reinterpret_cast<QWidget *>(this) ) ;
  TransferMode->setGeometry ( 20, 175, 300, 20 ) ;
  TransferMode->setGeometry ( 20, 175, 300, 20 ) ;
  TransferMode->setAutoResize ( TRUE ) ;
  TransferMode->setAutoResize ( TRUE ) ;
  TransferMode->setBackgroundPixmap ( pixmap ) ;
  TransferMode->setBackgroundPixmap ( pixmap ) ;
  TransferMode->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  TransferMode->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  TransferMode->show ( ) ;
  TransferMode->show ( ) ;
  TransferMode1 = new QLabel ( BoardInfo.TransferMode ( ), (QWidget *)this ) ;
  TransferMode1 = new QLabel ( BoardInfo.TransferMode ( ), reinterpret_cast<QWidget *>(this) ) ;
  TransferMode1->setGeometry ( 180, 175, 300, 20 ) ;
  TransferMode1->setGeometry ( 180, 175, 300, 20 ) ;
  TransferMode1->setAutoResize ( TRUE ) ;
  TransferMode1->setAutoResize ( TRUE ) ;
  TransferMode1->setBackgroundPixmap ( pixmap ) ;
  TransferMode1->setBackgroundPixmap ( pixmap ) ;
 Lines 206-212    Link Here 
 if( m_IsFireGL )
 if( m_IsFireGL )
 {
 {
  // ========
  // ========
  DInfo = new QLabel ( tr("Display Driver"), (QWidget *)this ) ;
  DInfo = new QLabel ( tr("Display Driver"), reinterpret_cast<QWidget *>(this) ) ;
//  DInfo->setFont (QFont( "Helvetica", 18 ) ) ;
//  DInfo->setFont (QFont( "Helvetica", 18 ) ) ;
  DInfo->setGeometry ( 10, 200, 300, 20 ) ;
  DInfo->setGeometry ( 10, 200, 300, 20 ) ;
  DInfo->setAutoResize ( TRUE ) ;
  DInfo->setAutoResize ( TRUE ) ;
 Lines 214-227    Link Here 
  DInfo->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  DInfo->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  DInfo->show ( ) ;
  DInfo->show ( ) ;
  DriverVersion = new QLabel ( tr("Driver Version :"), (QWidget *)this ) ;
  DriverVersion = new QLabel ( tr("Driver Version :"), reinterpret_cast<QWidget *>(this) ) ;
  DriverVersion->setGeometry ( 20, 225, 300, 20 ) ;
  DriverVersion->setGeometry ( 20, 225, 300, 20 ) ;
  DriverVersion->setAutoResize ( TRUE ) ;
  DriverVersion->setAutoResize ( TRUE ) ;
  DriverVersion->setBackgroundPixmap ( pixmap ) ;
  DriverVersion->setBackgroundPixmap ( pixmap ) ;
  DriverVersion->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  DriverVersion->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  DriverVersion->show ( ) ;
  DriverVersion->show ( ) ;
  DriverVersion1 = new QLabel ( BoardInfo.DriverVersion ( ), (QWidget *)this ) ;
  DriverVersion1 = new QLabel ( BoardInfo.DriverVersion ( ), reinterpret_cast<QWidget *>(this) ) ;
  DriverVersion1->setGeometry ( 180, 225, 300, 20 ) ;
  DriverVersion1->setGeometry ( 180, 225, 300, 20 ) ;
  DriverVersion1->setAutoResize ( TRUE ) ;
  DriverVersion1->setAutoResize ( TRUE ) ;
  DriverVersion1->setBackgroundPixmap ( pixmap ) ;
  DriverVersion1->setBackgroundPixmap ( pixmap ) ;
 Lines 231-237    Link Here 
  // ========
  // ========
  OGLInfo = new QLabel ( tr("OpenGL"), (QWidget *)this ) ;
  OGLInfo = new QLabel ( tr("OpenGL"), reinterpret_cast<QWidget *>(this) ) ;
//  OGLInfo->setFont (QFont( "Helvetica", 18 ) ) ;
//  OGLInfo->setFont (QFont( "Helvetica", 18 ) ) ;
  OGLInfo->setGeometry ( 10, 245, 300, 20 ) ;
  OGLInfo->setGeometry ( 10, 245, 300, 20 ) ;
  OGLInfo->setAutoResize ( TRUE ) ;
  OGLInfo->setAutoResize ( TRUE ) ;
 Lines 239-280    Link Here 
  OGLInfo->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLInfo->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLInfo->show ( ) ;
  OGLInfo->show ( ) ;
  OGLVendor = new QLabel ( tr("OpenGL vendor string :"), (QWidget *)this ) ;
  OGLVendor = new QLabel ( tr("OpenGL vendor string :"), reinterpret_cast<QWidget *>(this) ) ;
  OGLVendor->setGeometry ( 20, 270, 300, 20 ) ;
  OGLVendor->setGeometry ( 20, 270, 300, 20 ) ;
  OGLVendor->setAutoResize ( TRUE ) ;
  OGLVendor->setAutoResize ( TRUE ) ;
  OGLVendor->setBackgroundPixmap ( pixmap ) ;
  OGLVendor->setBackgroundPixmap ( pixmap ) ;
  OGLVendor->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLVendor->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLVendor->show ( ) ;
  OGLVendor->show ( ) ;
  OGLVendor1 = new QLabel ( BoardInfo.OGLVendor ( ), (QWidget *)this ) ;
  OGLVendor1 = new QLabel ( BoardInfo.OGLVendor ( ), reinterpret_cast<QWidget *>(this) ) ;
  OGLVendor1->setGeometry ( 180, 270, 300, 20 ) ;
  OGLVendor1->setGeometry ( 180, 270, 300, 20 ) ;
  OGLVendor1->setAutoResize ( TRUE ) ;
  OGLVendor1->setAutoResize ( TRUE ) ;
  OGLVendor1->setBackgroundPixmap ( pixmap ) ;
  OGLVendor1->setBackgroundPixmap ( pixmap ) ;
  OGLVendor1->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLVendor1->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLVendor1->show ( ) ;
  OGLVendor1->show ( ) ;
  OGLRenderer = new QLabel ( tr("OpenGL renderer string :"), (QWidget *)this ) ;
  OGLRenderer = new QLabel ( tr("OpenGL renderer string :"), reinterpret_cast<QWidget *>(this) ) ;
  OGLRenderer->setGeometry ( 20, 290, 300, 20 ) ;
  OGLRenderer->setGeometry ( 20, 290, 300, 20 ) ;
  OGLRenderer->setAutoResize ( TRUE ) ;
  OGLRenderer->setAutoResize ( TRUE ) ;
  OGLRenderer->setBackgroundPixmap ( pixmap ) ;
  OGLRenderer->setBackgroundPixmap ( pixmap ) ;
  OGLRenderer->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLRenderer->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLRenderer->show ( ) ;
  OGLRenderer->show ( ) ;
  OGLRenderer1 = new QLabel ( BoardInfo.OGLRenderer ( ), (QWidget *)this ) ;
  OGLRenderer1 = new QLabel ( BoardInfo.OGLRenderer ( ), reinterpret_cast<QWidget *>(this) ) ;
  OGLRenderer1->setGeometry ( 180, 290, 300, 20 ) ;
  OGLRenderer1->setGeometry ( 180, 290, 300, 20 ) ;
  OGLRenderer1->setAutoResize ( TRUE ) ;
  OGLRenderer1->setAutoResize ( TRUE ) ;
  OGLRenderer1->setBackgroundPixmap ( pixmap ) ;
  OGLRenderer1->setBackgroundPixmap ( pixmap ) ;
  OGLRenderer1->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLRenderer1->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLRenderer1->show ( ) ;
  OGLRenderer1->show ( ) ;
  OGLVersion = new QLabel ( tr("OpenGL version string :"), (QWidget *)this ) ;
  OGLVersion = new QLabel ( tr("OpenGL version string :"), reinterpret_cast<QWidget *>(this) ) ;
  OGLVersion->setGeometry ( 20, 310, 300, 20 ) ;
  OGLVersion->setGeometry ( 20, 310, 300, 20 ) ;
  OGLVersion->setAutoResize ( TRUE ) ;
  OGLVersion->setAutoResize ( TRUE ) ;
  OGLVersion->setBackgroundPixmap ( pixmap ) ;
  OGLVersion->setBackgroundPixmap ( pixmap ) ;
  OGLVersion->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLVersion->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  OGLVersion->show ( ) ;
  OGLVersion->show ( ) ;
  OGLVersion1 = new QLabel ( BoardInfo.OGLVersion ( ), (QWidget *)this ) ;
  OGLVersion1 = new QLabel ( BoardInfo.OGLVersion ( ), reinterpret_cast<QWidget *>(this) ) ;
  OGLVersion1->setGeometry ( 180, 310, 300, 20 ) ;
  OGLVersion1->setGeometry ( 180, 310, 300, 20 ) ;
  OGLVersion1->setAutoResize ( TRUE ) ;
  OGLVersion1->setAutoResize ( TRUE ) ;
  OGLVersion1->setBackgroundPixmap ( pixmap ) ;
  OGLVersion1->setBackgroundPixmap ( pixmap ) ;
 Lines 282-288    Link Here 
  OGLVersion1->show ( ) ;
  OGLVersion1->show ( ) ;
  // ========
  // ========
  Logo = new QLabel ( "", (QWidget *)this ) ;
  Logo = new QLabel ( "", reinterpret_cast<QWidget *>(this) ) ;
  Logo->setGeometry ( 10, 330, 72, 50 ) ;
  Logo->setGeometry ( 10, 330, 72, 50 ) ;
  Logo->setBackgroundPixmap ( logopix ) ;
  Logo->setBackgroundPixmap ( logopix ) ;
  Logo->show ( ) ;
  Logo->show ( ) ;
(-) fglrx_panel_sources.orig/Page.cpp (-10 / +10 lines)
 Lines 12-18    Link Here 
extern unsigned long ulDesktopSetup;
extern unsigned long ulDesktopSetup;
Page::Page( QWidget *parent, int Type, bool is_firegl ) : QWidget( parent, (const char *)0 )
Page::Page( QWidget *parent, int Type, bool is_firegl ) : QWidget( parent, reinterpret_cast<const char *>(0) )
{
{
  QFrame *Frame ;
  QFrame *Frame ;
  int     Cnt ;
  int     Cnt ;
 Lines 33-43    Link Here 
      pFrame1->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 6, PANEL_HEIGHT - 94 - 6 ) ;
      pFrame1->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 6, PANEL_HEIGHT - 94 - 6 ) ;
      pFrame1->setFrameStyle ( QFrame::Panel | QFrame::Raised ) ;
      pFrame1->setFrameStyle ( QFrame::Panel | QFrame::Raised ) ;
      pInfo = new InfoPage ( (QWidget *)pFrame1, is_firegl ) ;
      pInfo = new InfoPage ( reinterpret_cast<QWidget *>(pFrame1), is_firegl ) ;
      pInfo->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 12, PANEL_HEIGHT - 94 - 12 ) ;
      pInfo->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 12, PANEL_HEIGHT - 94 - 12 ) ;
      connect( parent, SIGNAL( Activate( int ) ), pInfo, SLOT( OnActivate( int ) ) );
      connect( parent, SIGNAL( Activate( int ) ), pInfo, SLOT( OnActivate( int ) ) );
      ((Sheet *)parent)->addTab ( (QWidget *)this, tr("Information") ) ;
      ((Sheet *)parent)->addTab ( reinterpret_cast<QWidget *>(this), tr("Information") ) ;
      break ;
      break ;
    }
    }
    case DUALSCREEN_PAGE :
    case DUALSCREEN_PAGE :
 Lines 49-60    Link Here 
      pFrame1->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 6, PANEL_HEIGHT - 94 - 6 ) ;
      pFrame1->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 6, PANEL_HEIGHT - 94 - 6 ) ;
      pFrame1->setFrameStyle ( QFrame::Panel | QFrame::Raised ) ;
      pFrame1->setFrameStyle ( QFrame::Panel | QFrame::Raised ) ;
      pDual = new DualScreenPage ( (QWidget *)pFrame1 ) ;
      pDual = new DualScreenPage ( reinterpret_cast<QWidget *>(pFrame1) ) ;
      pDual->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 12, PANEL_HEIGHT - 94 - 12 ) ;
      pDual->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 12, PANEL_HEIGHT - 94 - 12 ) ;
      connect( parent, SIGNAL( Activate( int ) ), pDual, SLOT( OnActivate( int ) ) );
      connect( parent, SIGNAL( Activate( int ) ), pDual, SLOT( OnActivate( int ) ) );
      connect( parent, SIGNAL( Apply( int * ) ), pDual, SLOT( OnApply( int * ) ) );
      connect( parent, SIGNAL( Apply( int * ) ), pDual, SLOT( OnApply( int * ) ) );
      ((Sheet *)parent)->addTab ( (QWidget *)this, tr("DualScreen") ) ;
      ((Sheet *)parent)->addTab ( reinterpret_cast<QWidget *>(this), tr("DualScreen") ) ;
      break ;
      break ;
    }
    }
    case ADJUST_PAGE :
    case ADJUST_PAGE :
 Lines 77-84    Link Here 
        QString     MonitorName ;
        QString     MonitorName ;
        MonitorName.sprintf ( tr("Screen %d"), Cnt + 1 ) ;
        MonitorName.sprintf ( tr("Screen %d"), Cnt + 1 ) ;
        pAdjust = new AdjustPage ( (QWidget *)pTab, Cnt ) ;
        pAdjust = new AdjustPage ( reinterpret_cast<QWidget *>(pTab), Cnt ) ;
        pTab->addTab ( ( QWidget *)pAdjust, MonitorName ) ;
        pTab->addTab ( reinterpret_cast<QWidget *>(pAdjust), MonitorName ) ;
        connect ( parent, SIGNAL( Activate ( int ) ), pAdjust, SLOT(OnActivate( int ) ) );
        connect ( parent, SIGNAL( Activate ( int ) ), pAdjust, SLOT(OnActivate( int ) ) );
        connect( parent, SIGNAL( Apply( int * ) ), pAdjust, SLOT( OnApply( int * ) ) );
        connect( parent, SIGNAL( Apply( int * ) ), pAdjust, SLOT( OnApply( int * ) ) );
        connect( parent, SIGNAL( Cancel( ) ), pAdjust, SLOT( OnCancel( ) ) );
        connect( parent, SIGNAL( Cancel( ) ), pAdjust, SLOT( OnCancel( ) ) );
 Lines 98-104    Link Here 
    connect( parent, SIGNAL( Apply( int * ) ), pAdjust, SLOT( OnApply( int * ) ) );
    connect( parent, SIGNAL( Apply( int * ) ), pAdjust, SLOT( OnApply( int * ) ) );
    connect( parent, SIGNAL( Cancel( ) ), pAdjust, SLOT( OnCancel( ) ) );
    connect( parent, SIGNAL( Cancel( ) ), pAdjust, SLOT( OnCancel( ) ) );
#endif // alternate path
#endif // alternate path
      ((Sheet *)parent)->addTab ( (QWidget *)this, tr("Adjustment") ) ;
      ((Sheet *)parent)->addTab ( reinterpret_cast<QWidget *>(this), tr("Adjustment") ) ;
      break ;
      break ;
    }
    }
 Lines 112-124    Link Here 
      pFrame1->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 6, PANEL_HEIGHT - 94 - 6 ) ;
      pFrame1->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 6, PANEL_HEIGHT - 94 - 6 ) ;
      pFrame1->setFrameStyle ( QFrame::Panel | QFrame::Raised ) ;
      pFrame1->setFrameStyle ( QFrame::Panel | QFrame::Raised ) ;
      pTVout = new TVoutAdjustPage ( (QWidget *)pFrame1 ) ;
      pTVout = new TVoutAdjustPage ( reinterpret_cast<QWidget *>(pFrame1) ) ;
      pTVout->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 12, PANEL_HEIGHT - 94 - 12 ) ;
      pTVout->setGeometry ( 3, 3, PANEL_WIDTH - 24 - 12, PANEL_HEIGHT - 94 - 12 ) ;
      connect( parent, SIGNAL( Activate ( int ) ), pTVout, SLOT(OnActivate( int ) ) );
      connect( parent, SIGNAL( Activate ( int ) ), pTVout, SLOT(OnActivate( int ) ) );
      connect( parent, SIGNAL( Apply( int * ) ), pTVout, SLOT( OnApply( int * ) ) );
      connect( parent, SIGNAL( Apply( int * ) ), pTVout, SLOT( OnApply( int * ) ) );
      connect( parent, SIGNAL( Cancel( ) ), pTVout, SLOT( OnCancel( ) ) );
      connect( parent, SIGNAL( Cancel( ) ), pTVout, SLOT( OnCancel( ) ) );
      ((Sheet *)parent)->addTab ( (QWidget *)this, tr("TV Out") ) ;
      ((Sheet *)parent)->addTab ( reinterpret_cast<QWidget *>(this), tr("TV Out") ) ;
      break ;
      break ;
    }
    }
#endif // FGL_TVOUT
#endif // FGL_TVOUT
(-) fglrx_panel_sources.orig/TVoutAdjustPage.cpp (-6 / +6 lines)
 Lines 44-50    Link Here 
#define BUTTON_PRESS_ADD_VALUE 2
#define BUTTON_PRESS_ADD_VALUE 2
TVoutAdjustPage::TVoutAdjustPage ( QWidget *parent ) : QWidget ( parent, (const char *)0 )
TVoutAdjustPage::TVoutAdjustPage ( QWidget *parent ) : QWidget ( parent, reinterpret_cast<const char *>(0) )
{
{
  m_Init = FALSE ;
  m_Init = FALSE ;
}
}
 Lines 82-88    Link Here 
  pTVOn->setFocusPolicy ( QWidget::StrongFocus ) ;
  pTVOn->setFocusPolicy ( QWidget::StrongFocus ) ;
  pTVOn->setBackgroundPixmap ( pixmap ) ;
  pTVOn->setBackgroundPixmap ( pixmap ) ;
  pTVOn->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pTVOn->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pTVOn->setChecked((bool) m_TVConnect) ;
  pTVOn->setChecked( static_cast<bool>(m_TVConnect) ) ;
  pTVOnBox->show ( ) ;
  pTVOnBox->show ( ) ;
  pTVOn->show ( ) ;
  pTVOn->show ( ) ;
 Lines 128-136    Link Here 
  pTVColorBox->setBackgroundPixmap ( pixmap ) ;
  pTVColorBox->setBackgroundPixmap ( pixmap ) ;
  pTVColorBox->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pTVColorBox->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderTVColor = new QSlider ( (int)(0), (int)(0xFF), 30, 100, QSlider::Horizontal, this) ;
  pSliderTVColor = new QSlider ( static_cast<int>(0), static_cast<int>(0xFF), 30, 100, QSlider::Horizontal, this) ;
  pSliderTVColor->setGeometry ( 175, 130, 190, 25 ) ;
  pSliderTVColor->setGeometry ( 175, 130, 190, 25 ) ;
  pSliderTVColor->setTickmarks ( (QSlider::TickSetting)2 ) ; //Below
  pSliderTVColor->setTickmarks ( static_cast<QSlider::TickSetting>(2) ) ; //Below
  pSliderTVColor->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderTVColor->setFocusPolicy ( QWidget::StrongFocus ) ;
  pSliderTVColor->setBackgroundPixmap ( pixmap ) ;
  pSliderTVColor->setBackgroundPixmap ( pixmap ) ;
  pSliderTVColor->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
  pSliderTVColor->setBackgroundOrigin ( QWidget::ParentOrigin ) ;
 Lines 145-151    Link Here 
  pTVColorBox->show ( ) ;
  pTVColorBox->show ( ) ;
  pSliderTVColor->show() ;
  pSliderTVColor->show() ;
  pSliderTVColor->setValue ( (int)(m_tvColorAdj) ) ;
  pSliderTVColor->setValue ( static_cast<int>(m_tvColorAdj) ) ;
  Str.sprintf ( "%3d", m_tvColorAdj ) ;
  Str.sprintf ( "%3d", m_tvColorAdj ) ;
  pTextSliderTVColor->setText ( Str ) ;
  pTextSliderTVColor->setText ( Str ) ;
  pTextSliderTVColor->show ( ) ;
  pTextSliderTVColor->show ( ) ;
 Lines 370-376    Link Here 
void TVoutAdjustPage::OnTVOn ( bool on )
void TVoutAdjustPage::OnTVOn ( bool on )
{
{
  m_TVOOnOffChanged = TRUE ;
  m_TVOOnOffChanged = TRUE ;
  m_TVConnect = (int)on ;
  m_TVConnect = static_cast<int>(on);
  DEB(printf("[OnTVOn] m_TVConnect %d\n",m_TVConnect));
  DEB(printf("[OnTVOn] m_TVConnect %d\n",m_TVConnect));
  ExtATITVOEnableDisable(m_TVConnect);
  ExtATITVOEnableDisable(m_TVConnect);
}
}