summaryrefslogtreecommitdiff
path: root/games/kslide/files
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-01-23 17:49:05 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-01-23 17:49:05 +0000
commitcb8082fad43391321cf1cda111f88a58db8b395e (patch)
treec878612dd89214bc11a9bcb90766fa2f75e64166 /games/kslide/files
parentFix a dependency problem raised by bento (diff)
Add kslide, a KDE puzzle game.
Notes
Notes: svn path=/head/; revision=98904
Diffstat (limited to 'games/kslide/files')
-rw-r--r--games/kslide/files/patch-cintro.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/games/kslide/files/patch-cintro.cpp b/games/kslide/files/patch-cintro.cpp
new file mode 100644
index 000000000000..c6b1db880191
--- /dev/null
+++ b/games/kslide/files/patch-cintro.cpp
@@ -0,0 +1,22 @@
+--- kslide/cintro.cpp.orig Fri Jan 23 17:50:42 2004
++++ kslide/cintro.cpp Fri Jan 23 18:23:19 2004
+@@ -18,6 +18,10 @@
+ #include "cintro.h"
+ #include "score.h"
+
++#include <stdlib.h>
++#include <sys/types.h>
++#include <pwd.h>
++
+ #include <qpainter.h>
+ #include <qfont.h>
+ #include <kapp.h>
+@@ -86,7 +90,7 @@
+ playername->hide();
+ KConfig *config = kapp->config();
+ config->setGroup("Player");
+- playername->setText(config->readEntry("playername",QString(cuserid(NULL))));
++ playername->setText(config->readEntry("playername",QString(getpwuid(geteuid())->pw_name)));
+ playername->selectAll();
+
+ setMouseTracking(true);