hi

I do not like the fix I made as it is specific to hebrew.
I was not able to find the difference the way the guidegrid and os displays the text,
and why it is reversed only on the OSD and not in the guideGrid.
if anybody knows why, please let me know.


for the time being, I enclose a patch for the hebrew users.

cheers,

erez.

diff -u new/osdtypes.cpp old/osdtypes.cpp
--- new/osdtypes.cpp    2005-02-26 01:32:07.000000000 +0200
+++ old/osdtypes.cpp    2005-02-05 11:06:56.000000000 +0200
@@ -3,9 +3,6 @@
 #include <qregexp.h>
 #include <math.h>
 
-// erez
-#include <qtextcodec.h>
-
 #include <iostream>
 using namespace std;
 
@@ -645,18 +642,6 @@
         DrawString(surface, m_displaysize, m_message, fade, maxfade, xoff, 
                    yoff);
 }           
-
-const QString HebrewReverse(const QString text) // erez
-{
-  static QTextCodec *codec =NULL;
-  static QTextCodec *codeci =NULL;
-  if (codeci==NULL) codeci = QTextCodec::codecForName("ISO8859-8I");
-  if (codec==NULL) codec = QTextCodec::codecForName("ISO8859-8");
-
-  const QString text2=codeci->toUnicode(codec->fromUnicode(text));
-  return text2;
-}
-
   
 void OSDTypeText::DrawString(OSDSurface *surface, QRect rect, 
                              const QString &text, int fade, int maxfade, 
@@ -697,8 +682,7 @@
     if (m_usingalt && m_altfont)
         font = m_altfont;
 
-    // erez font->DrawString(surface, x, y, text, maxx, maxy, alphamod);
-    font->DrawString(surface, x, y, HebrewReverse(text), maxx, maxy, 
alphamod); // erez
+    font->DrawString(surface, x, y, text, maxx, maxy, alphamod);
 } 
 
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to