[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeedu/khangman/khangman
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2005-04-11 15:59:42
Message-ID: 20050411155942.3B78D633 () office ! kde ! org
[Download RAW message or body]

CVS commit by annma: 

fix already guessed in word in desert theme


  M +13 -5     khangmanview.cpp   1.101


--- kdeedu/khangman/khangman/khangmanview.cpp  #1.100:1.101
@@ -312,11 +312,19 @@ void KHangManView::paintWordTwice()
     QPainter paint;
     paint.begin(paletteBackgroundPixmap());
-    paint.setFont(QFont("Arial", 32));
+    paint.setFont(QFont("Arial", 30));
     paint.setPen(QColor(Qt::red));
     QRect aux = paint.boundingRect(QRect(), AlignAuto, goodWord.left(redIndex));
+    if (Prefs::mode() ==0) { //sea theme
     if (redIndex == 0)
         paint.drawText(width()/50+aux.width(), height()-height()/10, \
QString(goodWord[redIndex]));  else //weird that it needs 2 pixels less after first
         paint.drawText(width()/50+aux.width()-2, height()-height()/10, \
QString(goodWord[redIndex])); +    }
+    else { //desert theme
+        if (redIndex == 0)
+            paint.drawText(width()*385/700+aux.width(), height()-height()*43/535, \
QString(goodWord[redIndex])); +        else 
+            paint.drawText(width()*385/700+aux.width()-2, height()-height()*43/535, \
QString(goodWord[redIndex])); +    }
     paint.end();
     bitBlt(this, 0, 0, paletteBackgroundPixmap());


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic