Browse Source

updated code to match current nanovg git

pull/1/head
Leonard Ritter 10 years ago
parent
commit
179f9c59e2
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      blendish.h
  2. +1
    -1
      example.cpp

+ 3
- 3
blendish.h View File

@@ -35,7 +35,7 @@ extern "C" {

/*

Revision 5 (2014-09-09)
Revision 6 (2014-09-21)

Summary
-------
@@ -61,7 +61,7 @@ bndSetFont() has been called. See bndSetFont() for more information.
Drawbacks
---------

There is no support varying dpi resolutions yet. The library is hardcoded
There is no support for varying dpi resolutions yet. The library is hardcoded
to the equivalent of 72 dpi in the Blender system settings.

Support for label truncation is missing. Text rendering breaks when widgets are
@@ -1974,7 +1974,7 @@ void bndIcon(NVGcontext *ctx, float x, float y, int iconid) {
nvgImagePattern(ctx,x-u,y-v,
BND_ICON_SHEET_WIDTH,
BND_ICON_SHEET_HEIGHT,
0,bnd_icon_image,0,1));
0,bnd_icon_image,1));
nvgFill(ctx);
}



+ 1
- 1
example.cpp View File

@@ -81,7 +81,7 @@ typedef struct {

void init(NVGcontext *vg) {
bndSetFont(nvgCreateFont(vg, "system", "../DejaVuSans.ttf"));
bndSetIconImage(nvgCreateImage(vg, "../blender_icons16.png"));
bndSetIconImage(nvgCreateImage(vg, "../blender_icons16.png", 0));
}

// calculate which corners are sharp for an item, depending on whether


Loading…
Cancel
Save