From c439db6050b7348b7c994af8a62c5cb4f08d200f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 17 Jul 2009 08:40:59 +0000 Subject: [PATCH] 2009-07-17 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * source/rtl/gtxwc/gtxwc.c ! Fixed typo. This should fix the warning plus black screen reported by some users. Please test. --- harbour/ChangeLog | 6 ++++++ harbour/source/rtl/gtxwc/gtxwc.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e053f242ca..990346cb2d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-07-17 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * source/rtl/gtxwc/gtxwc.c + ! Fixed typo. + This should fix the warning plus black screen reported by + some users. Please test. + 2009-07-17 10:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * source/rtl/gtxwc/gtxwc.c ! Fixed to compile under cygwin. diff --git a/harbour/source/rtl/gtxwc/gtxwc.c b/harbour/source/rtl/gtxwc/gtxwc.c index f286e4c04d..70a23f623a 100644 --- a/harbour/source/rtl/gtxwc/gtxwc.c +++ b/harbour/source/rtl/gtxwc/gtxwc.c @@ -321,7 +321,7 @@ typedef struct tag_rect int left; int right; int bottom; -} HB_RECT; +} XWC_RECT; typedef struct tag_modifiers { @@ -435,10 +435,10 @@ typedef struct tag_x_wnddef XWC_CharTrans charTrans[256]; BOOL fInvalidChr; - HB_RECT rInvalidChr; + XWC_RECT rInvalidChr; BOOL fInvalidPts; - HB_RECT rInvalidPts; + XWC_RECT rInvalidPts; /* Keyboard buffer */ int keyBuffPointer; @@ -2570,7 +2570,7 @@ static void hb_gt_xwc_RepaintChar( PXWND_DEF wnd, int colStart, int rowStart, in else { usCh16 &= 0xFF; - color &= ( BYTE ) iColor; + color = ( BYTE ) iColor; } ulCurr = hb_gt_xwc_HashCurrChar( attr, color, usCh16 ); if( wnd->charTrans[ usCh16 ].inverse )