|
From: <hba...@us...> - 2009-11-20 00:29:10
|
Revision: 10617
http://plplot.svn.sourceforge.net/plplot/?rev=10617&view=rev
Author: hbabcock
Date: 2009-11-20 00:29:03 +0000 (Fri, 20 Nov 2009)
Log Message:
-----------
Get rid of warning messages on mingw32 by casting variables as appropriate (Qt4.5.3).
Modified Paths:
--------------
trunk/bindings/qt_gui/plqt.cpp
Modified: trunk/bindings/qt_gui/plqt.cpp
===================================================================
--- trunk/bindings/qt_gui/plqt.cpp 2009-11-19 23:20:23 UTC (rev 10616)
+++ trunk/bindings/qt_gui/plqt.cpp 2009-11-20 00:29:03 UTC (rev 10617)
@@ -192,7 +192,7 @@
tempPainter.end();
- p->drawPicture((int) ( xOffset + bounding.width() / 2. ), -yOffset, tempPic );
+ p->drawPicture((int) ( xOffset + bounding.width() / 2. ), (int) -yOffset, tempPic );
xOffset += bounding.width();
}
@@ -746,7 +746,7 @@
el.Data.ColourStruct->R = r;
el.Data.ColourStruct->G = g;
el.Data.ColourStruct->B = b;
- el.Data.ColourStruct->A = alpha * 255.;
+ el.Data.ColourStruct->A = (PLINT) (alpha * 255.);
m_listBuffer.append( el );
@@ -767,7 +767,7 @@
el.Data.ColourStruct->R = r;
el.Data.ColourStruct->G = g;
el.Data.ColourStruct->B = b;
- el.Data.ColourStruct->A = alpha * 255.;
+ el.Data.ColourStruct->A = (PLINT) (alpha * 255.);
bgColour.r = r;
bgColour.g = g;
@@ -835,7 +835,7 @@
p->translate( -s->just * xOffset * p->device()->logicalDpiY() / picDpi, 0. );
- p->drawPicture( 0., 0., picText );
+ p->drawPicture( 0, 0, picText );
p->resetTransform();
@@ -1050,7 +1050,7 @@
case SET_BG_COLOUR:
SolidBrush.setColor( QColor( i->Data.ColourStruct->R, i->Data.ColourStruct->G, i->Data.ColourStruct->B, i->Data.ColourStruct->A ));
- p->fillRect( 0., 0., m_dWidth, m_dHeight, SolidBrush );
+ p->fillRect( 0, 0, (int) m_dWidth, (int) m_dHeight, SolidBrush );
break;
default:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|