[Kde-games-devel] KDE/kdegames/kolf
Mauricio Piacentini
piacentini at kde.org
Wed Jan 2 04:15:00 CET 2008
SVN commit 755701 by piacentini:
Fix garbage in intro screen, put new Kolf SVG banner.
CCMAIL:kde-games-devel at kde.org
M +9 -4 game.cpp
M +3 -0 game.h
M +0 -9 intro
--- trunk/KDE/kdegames/kolf/game.cpp #755700:755701
@@ -2579,6 +2579,7 @@
m_ignoreEvents = false;
highestHole = 0;
recalcHighestHole = false;
+ banner = 0;
renderer = new KolfSvgRenderer( KStandardDirs::locate("appdata", "pics/default_theme.svgz") );
@@ -2619,8 +2620,9 @@
if( filename.contains( "intro" ) )
{
QPixmap introPic;
- introPic = renderer->renderSvg("intro_foreground", 5, 5, 0);
- course->setForegroundBrush(QBrush(introPic));
+ introPic = renderer->renderSvg("intro_foreground", 400, 132, 0);
+ banner = new QGraphicsPixmapItem(introPic, 0, course);
+ banner->setPos(0.0,32.0);
}
setScene(course);
@@ -3196,8 +3198,11 @@
if( filename.contains( "intro" ) )
{
QPixmap introPic;
- introPic = renderer->renderSvg("intro_foreground", 5, 5, 0);
- course->setForegroundBrush(QBrush(introPic));
+ introPic = renderer->renderSvg("intro_foreground", 400.0*resizeFactor, 132.0*resizeFactor, 0);
+ //course->setForegroundBrush(QBrush(introPic));
+ delete banner;
+ banner = new QGraphicsPixmapItem(introPic, 0, course);
+ banner->setPos(0.0*resizeFactor,32.0*resizeFactor);
}
//stroke circle resize
--- trunk/KDE/kdegames/kolf/game.h #755700:755701
@@ -1113,6 +1113,9 @@
CanvasItem *movingCanvasItem;
QGraphicsItem *selectedItem;
QGraphicsRectItem *highlighter;
+
+ //For intro banner
+ QGraphicsPixmapItem *banner;
#ifdef SOUND
Phonon::MediaObject *m_player;
--- trunk/KDE/kdegames/kolf/intro #755700:755701
@@ -59,15 +59,6 @@
height=326
width=102
-[1-sign at 296,8|32]
-Comment=<h1 style="color:white;background-color:black;">K<br>O<br>L<br>F</h1>
-botWallVisible=true
-height=123
-leftWallVisible=true
-rightWallVisible=true
-topWallVisible=true
-width=22
-
[1-slope at 132,237|28]
grade=4
gradient=Vertical
More information about the kde-games-devel
mailing list