summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_x11.cpp
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-05-14 07:06:54 (GMT)
committeraavit <qt-info@nokia.com>2010-05-14 07:06:54 (GMT)
commitb2e15281d56415e6ef8d4f1604d25b198d449f06 (patch)
treef6207fd8c402b938fd20e098327f50ccb1ffc8e6 /src/gui/painting/qpaintengine_x11.cpp
parentad6dafee9be288bcef6b2c4b318b234d2995abff (diff)
parentb7f4b58a94f3be8f8c2fa2f2e4acc3a05e621e92 (diff)
downloadQt-b2e15281d56415e6ef8d4f1604d25b198d449f06.zip
Qt-b2e15281d56415e6ef8d4f1604d25b198d449f06.tar.gz
Qt-b2e15281d56415e6ef8d4f1604d25b198d449f06.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'src/gui/painting/qpaintengine_x11.cpp')
-rw-r--r--src/gui/painting/qpaintengine_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp
index da48fcb..aef8b80 100644
--- a/src/gui/painting/qpaintengine_x11.cpp
+++ b/src/gui/painting/qpaintengine_x11.cpp
@@ -315,7 +315,7 @@ static Picture getPatternFill(int screen, const QBrush &b)
return X11->pattern_fills[i].picture;
}
// none found, replace one
- int i = rand() % 16;
+ int i = qrand() % 16;
if (X11->pattern_fills[i].screen != screen && X11->pattern_fills[i].picture) {
XRenderFreePicture (X11->display, X11->pattern_fills[i].picture);