Changeset 41527 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 31, 2012 4:29:00 PM (13 years ago)
- 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 221 221 float g = (ls.width() / (c - 1)); 222 222 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); 224 224 /* The text */ 225 225 QFont f = p.font(); … … 266 266 const QImage &i = betaLabelImage(ls); 267 267 /* 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); 269 269 QImage i1(w, w, QImage::Format_ARGB32); 270 270 i1.fill(Qt::transparent); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r41404 r41527 1016 1016 case QEvent::Resize: 1017 1017 { 1018 #ifdef VBOX_WITH_VIDEOHWACCEL 1018 1019 QResizeEvent* pResizeEvent = static_cast<QResizeEvent*>(pEvent); 1019 #ifdef VBOX_WITH_VIDEOHWACCEL1020 1020 if (m_pFrameBuffer) 1021 1021 m_pFrameBuffer->viewportResized(pResizeEvent);
Note:
See TracChangeset
for help on using the changeset viewer.