aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r--src-qt5/core/libLumina/LuminaX11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/LuminaX11.cpp b/src-qt5/core/libLumina/LuminaX11.cpp
index ee4ed5b7..1df5a9f0 100644
--- a/src-qt5/core/libLumina/LuminaX11.cpp
+++ b/src-qt5/core/libLumina/LuminaX11.cpp
@@ -498,7 +498,7 @@ QIcon LXCB::WindowIcon(WId win){
QImage image(iter.width, iter.height, QImage::Format_ARGB32); //initial setup
uint* dat = iter.data;
//dat+=2; //remember the first 2 element offset
- for(int i=0; i<image.byteCount()/4; ++i, ++dat){
+ for(qsizetype i=0; i<image.sizeInBytes()/4; ++i, ++dat){
((uint*)image.bits())[i] = *dat;
}
icon.addPixmap(QPixmap::fromImage(image)); //layer this pixmap onto the icon
@@ -547,7 +547,7 @@ void LXCB::paintRoot(QRect area, const QPixmap *pix){
QImage qimage = pix->toImage().convertToFormat(QImage::Format_ARGB32);
xcb_image_t *image = xcb_image_create(pix->width(), pix->height(), XCB_IMAGE_FORMAT_XY_PIXMAP,
32, qimage.depth(), 32, 32, XCB_IMAGE_ORDER_LSB_FIRST, XCB_IMAGE_ORDER_LSB_FIRST,
- 0, qimage.byteCount(), qimage.bits());
+ 0, qimage.sizeInBytes(), qimage.bits());
//Now paint on the root window
bgstack15