Skip to content

Commit

Permalink
2017-09-09 18:28 UTC Viktor Szakats (vszakats users.noreply.github.com)
Browse files Browse the repository at this point in the history
  * contrib/gtwvg/wvgwing.c
  * contrib/gtwvg/gtwvglo.h
    * WVG_PREPAREBITMAPFROMFILE(): rewritten to use VF file I/O instead
      of CreateFile() Windows API

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgcuig.c
    * hb_wvt_gtLoadPicture(): rewritten to use VF file I/O instead of
      CreateFile() Windows API. [INCOMPATIBLE] for C code that called
      this function directly, as the input filename is now a char *
      instead of an LPCTSTR. Harbour-level functions affected:
      wvg_SetGObjData(), wvg_Image(),
      wvt_LoadPicture(), wvt_LoadPictureEx()
    * hb_wvt_gtLoadPicture(), hb_wvt_gtLoadPictureFromResource():
      define and export these on WinCE too, they will act as dummy
      functions on this platform. Previously it remained undefined
      instead.

  * contrib/gtwvg/wvgcore.c
    * hb_wvt_DrawImage(): rewritten to use VF file I/O instead of
      CreateFile() Windows API.
      Harbour-level functions affected:
      wvg_DrawImage(), wvt_DrawImage(), wvt_DrawButton(),
      wvt_DrawProgressBar()

  * contrib/gtwvw/gtwvwd.c
    * hb_gt_wvw_LoadPicture(): rewritten to use VF file I/O instead of
      CreateFile() Windows API.

  ; After these updates, gtwvg/gtwvw no longer accesses the filesystem
    directly. All VF filters/features work in filenames passed to them.

  * .gitattributes
    * .odt is a no longer a binary
  • Loading branch information
vszakats committed Sep 9, 2017
1 parent 9773707 commit 4b0ab57
Show file tree
Hide file tree
Showing 8 changed files with 205 additions and 185 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*.jpg binary
*.lbl binary
*.mdb binary
*.odt binary
*.pdf binary
*.png binary
*.sqlite3 binary
Expand Down
37 changes: 37 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,43 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2017-09-09 18:28 UTC Viktor Szakats (vszakats users.noreply.github.com)
* contrib/gtwvg/wvgwing.c
* contrib/gtwvg/gtwvglo.h
* WVG_PREPAREBITMAPFROMFILE(): rewritten to use VF file I/O instead
of CreateFile() Windows API

* contrib/gtwvg/gtwvg.h
* contrib/gtwvg/wvgcore.c
* contrib/gtwvg/wvgcuig.c
* hb_wvt_gtLoadPicture(): rewritten to use VF file I/O instead of
CreateFile() Windows API. [INCOMPATIBLE] for C code that called
this function directly, as the input filename is now a char *
instead of an LPCTSTR. Harbour-level functions affected:
wvg_SetGObjData(), wvg_Image(),
wvt_LoadPicture(), wvt_LoadPictureEx()
* hb_wvt_gtLoadPicture(), hb_wvt_gtLoadPictureFromResource():
define and export these on WinCE too, they will act as dummy
functions on this platform. Previously it remained undefined
instead.

* contrib/gtwvg/wvgcore.c
* hb_wvt_DrawImage(): rewritten to use VF file I/O instead of
CreateFile() Windows API.
Harbour-level functions affected:
wvg_DrawImage(), wvt_DrawImage(), wvt_DrawButton(),
wvt_DrawProgressBar()

* contrib/gtwvw/gtwvwd.c
* hb_gt_wvw_LoadPicture(): rewritten to use VF file I/O instead of
CreateFile() Windows API.

; After these updates, gtwvg/gtwvw no longer accesses the filesystem
directly. All VF filters/features work in filenames passed to them.

* .gitattributes
* .odt is a no longer a binary

2017-09-08 21:31 UTC Viktor Szakats (vszakats users.noreply.github.com)
* debian/copyright
* LICENSE.txt
Expand Down
4 changes: 1 addition & 3 deletions contrib/gtwvg/gtwvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,8 @@ typedef struct
#define PHB_GTWVT PHB_GTWVG

extern HB_EXPORT POINT hb_wvt_gtGetXYFromColRow( int col, int row );
#if ! defined( HB_OS_WIN_CE )
extern HB_EXPORT IPicture * hb_wvt_gtLoadPicture( LPCTSTR image );
extern HB_EXPORT IPicture * hb_wvt_gtLoadPicture( const char * pszFileName );
extern HB_EXPORT IPicture * hb_wvt_gtLoadPictureFromResource( LPCTSTR resource, LPCTSTR section );
#endif
extern HB_EXPORT void hb_wvt_GetStringAttrib( int top, int left, int bottom, int right, HB_BYTE * sBuffer, HB_BYTE * sAttrib );
extern HB_EXPORT void hb_wvt_PutStringAttrib( int top, int left, int bottom, int right, HB_BYTE * sBuffer, HB_BYTE * sAttrib );

Expand Down
1 change: 1 addition & 0 deletions contrib/gtwvg/gtwvglo.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include "hbgtcore.h"
#include "hbapicdp.h"
#include "hbapierr.h"
#include "hbapifs.h"
#include "hbapiitm.h"
#include "hbset.h"
#include "hbinit.h"
Expand Down
Loading

0 comments on commit 4b0ab57

Please sign in to comment.