summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kaffeine/src/player-parts/xine-part/kxinewidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kaffeine/src/player-parts/xine-part/kxinewidget.cpp b/kaffeine/src/player-parts/xine-part/kxinewidget.cpp
index 68d47ac..1c738f7 100644
--- a/kaffeine/src/player-parts/xine-part/kxinewidget.cpp
+++ b/kaffeine/src/player-parts/xine-part/kxinewidget.cpp
@@ -1517,11 +1517,11 @@ bool KXineWidget::playDvb()
#error Q_BYTE_ORDER is not defined!
#endif
-#ifndef TQ_LITTLE_ENDIAN
-#error TQ_LITTLE_ENDIAN is not defined!
+#ifndef Q_LITTLE_ENDIAN
+#error Q_LITTLE_ENDIAN is not defined!
#endif
-#if Q_BYTE_ORDER == TQ_LITTLE_ENDIAN
+#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
#define rgb2yuv(R,G,B) ((((((66*R+129*G+25*B+128)>>8)+16)<<8)|(((112*R-94*G-18*B+128)>>8)+128))<<8|(((-38*R-74*G+112*B+128)>>8)+128))
#else
#define rgb2yuv(R,G,B) (((((((-38*R-74*G+112*B+128)>>8)+128)<<8)|(((112*R-94*G-18*B+128)>>8)+128))<<8|(((66*R+129*G+25*B+128)>>8)+16))<<8)
@@ -4076,7 +4076,7 @@ uchar* KXineWidget::yv12ToRgb (uint8_t *src_y, uint8_t *src_u, uint8_t *src_v, i
clip_8_bit (g);
clip_8_bit (b);
-#if Q_BYTE_ORDER == TQ_LITTLE_ENDIAN
+#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
rgb[(i * width + j) * 4 + 0] = b;
rgb[(i * width + j) * 4 + 1] = g;
rgb[(i * width + j) * 4 + 2] = r;