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" |