--- a/QTfrontend/hwform.cpp Wed Apr 06 00:30:02 2011 +0200
+++ b/QTfrontend/hwform.cpp Wed Apr 06 11:51:23 2011 +0200
@@ -310,7 +310,7 @@
if (value)
setWindowState(windowState() | Qt::WindowFullScreen);
else {
- setWindowState(windowState() & !Qt::WindowFullScreen);
+ setWindowState(windowState() & static_cast<int>(!Qt::WindowFullScreen));
}
}
--- a/QTfrontend/selectWeapon.cpp Wed Apr 06 00:30:02 2011 +0200
+++ b/QTfrontend/selectWeapon.cpp Wed Apr 06 11:51:23 2011 +0200
@@ -35,7 +35,7 @@
QImage getAmmoImage(int num)
{
static QImage ammo(":Ammos.png");
- int x = floor(num/(ammo.height()/32));
+ int x = num/(ammo.height()/32);
int y = (num-((ammo.height()/32)*x))*32;
x*=32;
return ammo.copy(x, y, 32, 32);