fixed to always define .prg level CAIRO_IMAGE_SURFACE_CREATE()

This commit is contained in:
vszakats
2013-03-17 23:04:47 +01:00
parent a91e505c8b
commit ab5144e65c
2 changed files with 8 additions and 4 deletions

View File

@@ -10,6 +10,10 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2013-03-17 23:04 UTC+0100 Viktor Szakats (harbour syenar.net)
* contrib/hbcairo/image.c
! fixed to always define .prg level CAIRO_IMAGE_SURFACE_CREATE()
2013-03-17 21:59 UTC+0100 Viktor Szakats (harbour syenar.net)
* doc/en/dbstrux.txt
* doc/en/hvm.txt

View File

@@ -50,11 +50,11 @@
#include "hbcairo.h"
#ifdef CAIRO_HAS_IMAGE_SURFACE
HB_FUNC( CAIRO_IMAGE_SURFACE_CREATE )
{
#ifdef CAIRO_HAS_IMAGE_SURFACE
hb_cairo_surface_ret( cairo_image_surface_create( ( cairo_format_t ) hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ) ) );
#else
hb_retptr( NULL );
#endif
}
#endif /* CAIRO_HAS_IMAGE_SURFACE */