VirtualBox

Ignore:
Timestamp:
May 31, 2012 4:29:00 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: Warnings.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp

    r35424 r41527  
    221221    float g = (ls.width() / (c - 1));
    222222    for (int i = 0; i < c; ++i)
    223         p.drawLine(-g / 2 + g * i, ls.height(), -g / 2 + g * (i + 1), 0);
     223        p.drawLine((int)(-g / 2 + g * i), ls.height(), (int)(-g / 2 + g * (i + 1)), 0);
    224224    /* The text */
    225225    QFont f = p.font();
     
    266266    const QImage &i = betaLabelImage(ls);
    267267    /* Create a secondary image which will contain the rotated banner. */
    268     int w = sqrtf(powf(ls.width(), 2) / 2);
     268    int w = (int)sqrtf(powf(ls.width(), 2) / 2);
    269269    QImage i1(w, w, QImage::Format_ARGB32);
    270270    i1.fill(Qt::transparent);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r41404 r41527  
    10161016            case QEvent::Resize:
    10171017            {
     1018#ifdef VBOX_WITH_VIDEOHWACCEL
    10181019                QResizeEvent* pResizeEvent = static_cast<QResizeEvent*>(pEvent);
    1019 #ifdef VBOX_WITH_VIDEOHWACCEL
    10201020                if (m_pFrameBuffer)
    10211021                    m_pFrameBuffer->viewportResized(pResizeEvent);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette