Skip to content

Commit

Permalink
fix for v8 glue
Browse files Browse the repository at this point in the history
  • Loading branch information
krizsa committed Jan 7, 2011
1 parent cdae5c0 commit 98f039a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/canvas/cCanvas.h
Expand Up @@ -46,16 +46,16 @@ namespace o3

o3_glue_gen()

static o3_ext("cO3") o3_fun siScr canvas()
static siScr canvas()
{
o3_trace_scrfun("canvas");
return o3_new(cCanvas)();
}

static o3_ext("cO3") o3_fun siScr canvas(size_t w, size_t h/*, const char* mode = "argb" */)
static o3_ext("cO3") o3_fun siScr canvas(size_t w, size_t h, const char* mode = "argb")
{
o3_trace_scrfun("canvas");
return o3_new(cCanvas)(w,h,"argb");
return o3_new(cCanvas)(w,h,mode);
}

#pragma endregion O3_SCR
Expand Down

0 comments on commit 98f039a

Please sign in to comment.