Tj Holowaychuk 14 years ago
parent
commit
b2e6a542ff
  1. 2
      src/CanvasRenderingContext2d.cc
  2. 4
      wscript

2
src/CanvasRenderingContext2d.cc

@ -971,7 +971,6 @@ Context2d::FillText(const Arguments &args) {
double y = args[2]->NumberValue();
Context2d *context = ObjectWrap::Unwrap<Context2d>(args.This());
cairo_t *ctx = context->getContext();
context->savePath();
context->setTextPath(*str, x, y);
@ -998,7 +997,6 @@ Context2d::StrokeText(const Arguments &args) {
double y = args[2]->NumberValue();
Context2d *context = ObjectWrap::Unwrap<Context2d>(args.This());
cairo_t *ctx = context->getContext();
context->savePath();
context->setTextPath(*str, x, y);

4
wscript

@ -11,8 +11,8 @@ def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
conf.check_cfg(package='cairo', mandatory=1, args='--cflags --libs')
conf.env.append_value('CCFLAGS', ['-O3'])
conf.env.append_value('CXXFLAGS', ['-O3'])
conf.env.append_value('CCFLAGS', ['-O3', '-Wall'])
conf.env.append_value('CXXFLAGS', ['-O3', '-Wall'])
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')

Loading…
Cancel
Save