src/gui.cpp

changeset 473
2a84149fe642
parent 467
59549731151a
child 475
1f5ab7410e4d
equal deleted inserted replaced
472:8986414c6ad5 473:2a84149fe642
917 QImage imageFromScreencap (uchar* data, ushort w, ushort h) { 917 QImage imageFromScreencap (uchar* data, ushort w, ushort h) {
918 // GL and Qt formats have R and B swapped. Also, GL flips Y - correct it as well. 918 // GL and Qt formats have R and B swapped. Also, GL flips Y - correct it as well.
919 return QImage (data, w, h, QImage::Format_ARGB32).rgbSwapped().mirrored(); 919 return QImage (data, w, h, QImage::Format_ARGB32).rgbSwapped().mirrored();
920 } 920 }
921 921
922 #include "build/moc_gui.cpp" 922 #include "moc_gui.cxx"

mercurial