mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
set the X11 screen of the actual pixmap in QX11PaintEngine::drawPixmap()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
77e8316f2e
commit
2694feb58c
1 changed files with 1 additions and 2 deletions
|
@ -1849,8 +1849,7 @@ void QX11PaintEngine::drawPixmap(const QRectF &r, const QPixmap &px, const QRect
|
|||
|
||||
if ((d->xinfo && d->xinfo->screen() != pixmap.x11Info().screen())
|
||||
|| (pixmap.x11Info().screen() != DefaultScreen(qt_x11Data->display))) {
|
||||
QPixmap* p = const_cast<QPixmap *>(&pixmap);
|
||||
p->x11SetScreen(d->xinfo ? d->xinfo->screen() : DefaultScreen(qt_x11Data->display));
|
||||
pixmap.x11SetScreen(d->xinfo ? d->xinfo->screen() : DefaultScreen(qt_x11Data->display));
|
||||
}
|
||||
|
||||
QPixmap::x11SetDefaultScreen(pixmap.x11Info().screen());
|
||||
|
|
Loading…
Add table
Reference in a new issue