From 8505ffa0432bf00a2e459c3cefb3b4d26e291316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Mon, 16 Jun 2014 15:38:44 +0200 Subject: [PATCH] 2014-06-16 15:38 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/hbgtcore.c ! fixed typo in previous commit ; minor formatting --- ChangeLog.txt | 5 +++++ src/rtl/hbgtcore.c | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 78bfc3d6c1..63f9bfe0a9 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,11 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2014-06-16 15:38 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/hbgtcore.c + ! fixed typo in previous commit + ; minor formatting + 2014-06-12 19:29 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/hbgtcore.c + allow to use GTNUL at runtime just like any other GT driver, i.e. diff --git a/src/rtl/hbgtcore.c b/src/rtl/hbgtcore.c index e31ae4a781..904ec404f0 100644 --- a/src/rtl/hbgtcore.c +++ b/src/rtl/hbgtcore.c @@ -316,7 +316,7 @@ static void hb_gt_def_ColorSelect( PHB_GT pGT, int iColorIndex ) pGT->iColorIndex = iColorIndex; } -static int hb_gt_def_GetColor( PHB_GT pGT ) +static int hb_gt_def_GetColor( PHB_GT pGT ) { if( pGT->iColorCount ) return pGT->pColor[ pGT->iColorIndex ]; @@ -342,7 +342,7 @@ static void hb_gt_def_GetColorData( PHB_GT pGT, int ** pColorsPtr, int * piColor } } -static int hb_gt_def_GetClearColor( PHB_GT pGT ) +static int hb_gt_def_GetClearColor( PHB_GT pGT ) { return pGT->iClearColor; } @@ -468,7 +468,7 @@ static const char * hb_gt_def_ColorDecode( const char * szColorString, int * piC return NULL; } -static int hb_gt_def_ColorNum( PHB_GT pGT, const char * szColorString ) +static int hb_gt_def_ColorNum( PHB_GT pGT, const char * szColorString ) { int nColor; @@ -601,7 +601,7 @@ static void hb_gt_def_ColorsToString( PHB_GT pGT, int * pColors, int iColorCount } -static int hb_gt_def_GetCursorStyle( PHB_GT pGT ) +static int hb_gt_def_GetCursorStyle( PHB_GT pGT ) { return pGT->iCursorShape; } @@ -3213,7 +3213,7 @@ typedef struct int iRight; } _HB_MOUSE_STORAGE; -static int hb_gt_def_mouseStorageSize( PHB_GT pGT ) +static int hb_gt_def_mouseStorageSize( PHB_GT pGT ) { HB_SYMBOL_UNUSED( pGT ); @@ -3246,7 +3246,7 @@ static void hb_gt_def_mouseRestoreState( PHB_GT pGT, const void * pBuffer ) HB_GTSELF_MOUSESETCURSOR( pGT, pStore->fVisible ); } -static int hb_gt_def_mouseGetDoubleClickSpeed( PHB_GT pGT ) +static int hb_gt_def_mouseGetDoubleClickSpeed( PHB_GT pGT ) { return pGT->iDoubleClickSpeed; } @@ -3692,7 +3692,7 @@ static const char * hb_gt_FindDefault( void ) static int hb_gt_FindEntry( const char * pszID ) { - HB_BOOL fGt = hb_strnicmp( pszID, "gt", 2 ); + HB_BOOL fGt = hb_strnicmp( pszID, "gt", 2 ) == 0; int iPos; for( iPos = -1; iPos < s_iGtCount; iPos++ )