mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
move temporary closer to the scope it is used in qt_x11_drawImage()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
b67d9357a1
commit
4972156e48
1 changed files with 1 additions and 2 deletions
|
@ -1794,13 +1794,12 @@ Q_GUI_EXPORT void qt_x11_drawImage(const QRect &rect, const QPoint &pos, const Q
|
|||
const int w = rect.width();
|
||||
const int h = rect.height();
|
||||
|
||||
QImage im;
|
||||
int image_byte_order = ImageByteOrder(qt_x11Data->display);
|
||||
if ((QSysInfo::ByteOrder == QSysInfo::BigEndian && ((image_byte_order == LSBFirst) || bgr_layout))
|
||||
|| (image_byte_order == MSBFirst && QSysInfo::ByteOrder == QSysInfo::LittleEndian)
|
||||
|| (image_byte_order == LSBFirst && bgr_layout))
|
||||
{
|
||||
im = image->copy(rect);
|
||||
QImage im = image->copy(rect);
|
||||
const int iw = im.bytesPerLine() / 4;
|
||||
uint *data = (uint *)im.bits();
|
||||
for (int i=0; i < h; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue