[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-cygwin
Subject:    Re: [PATCH] qsettings_win - registry support
From:       Peter Kuemmel <kuemmel () coffeelogic ! de>
Date:       2004-09-23 17:43:51
Message-ID: 41530B57.1060703 () coffeelogic ! de
[Download RAW message or body]

Christian Ehrlicher schrieb:

> @Peter
> tutorial/t1:
> When I resize the app-window, sometimes the text in the button isn't
> displayed correctly. But it has nothing to do with the size...

With this patch it's a little bit better.
Peter

["qfont_t1.txt" (text/plain)]

Index: qfontengine_win.cpp
===================================================================
RCS file: /cvsroot/kde-cygwin/qt-3/src/kernel/Attic/qfontengine_win.cpp,v
retrieving revision 1.1.2.5
diff -u -B -b -r1.1.2.5 qfontengine_win.cpp
--- qfontengine_win.cpp	17 Sep 2004 06:55:10 -0000	1.1.2.5
+++ qfontengine_win.cpp	23 Sep 2004 17:26:01 -0000
 
 
@@ -519,9 +516,10 @@
 
     for ( int i = 0; i < numGlyphs; i++ ) {
         GLYPHMETRICS gmw;
-        if ( GDI_ERROR == GetGlyphOutline( hdc, glyphs[ i ], GGO_METRICS, \
&gmw, 0, 0, 0 ) ) { +		MAT2 ma = {0,1, 0,0, 0,0, 0,1};
+        if ( GDI_ERROR == GetGlyphOutline( hdc, glyphs[ i ], GGO_METRICS, \
&gmw, 0, 0, &ma ) ) {  #ifdef QFONTDATABASE_DEBUG_GDI
-            qlasterror( "qfontengine_win.cpp: QFontEngineWin::boundingBox \
GetGlyphIndices", GetLastError() ); +            qlasterror( \
"qfontengine_win.cpp: QFontEngineWin::boundingBox GetGlyphOutline", \
GetLastError() );  #endif
 
         }
@@ -568,9 +566,10 @@
     return gm;
     */
     GLYPHMETRICS gmw;
-    if ( GDI_ERROR == GetGlyphOutline( hdc, glyph, GGO_METRICS, &gmw, 0, \
0, 0 ) ) { +	MAT2 ma = {0,1, 0,0, 0,0, 0,1};
+    if ( GDI_ERROR == GetGlyphOutline( hdc, glyph, GGO_METRICS, &gmw, 0, \
0, &ma ) ) {  #ifdef QFONTDATABASE_DEBUG_GDI
-        qlasterror( "qfontengine_win.cpp: QFontEngineWin::stringToCMap \
GetGlyphIndices", GetLastError() ); +        qlasterror( \
"qfontengine_win.cpp: QFontEngineWin::boundingBox GetGlyphOutline", \
GetLastError() );  #endif
 
     }



_______________________________________________
kde-cygwin mailing list
kde-cygwin@kde.org
https://mail.kde.org/mailman/listinfo/kde-cygwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic