Browse Source

Mention text in NanoVG atlas params

gh-pages
falkTX 10 years ago
parent
commit
f1c3e35272
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      dgl/NanoVG.hpp
  2. +2
    -2
      dgl/src/NanoVG.cpp

+ 2
- 2
dgl/NanoVG.hpp View File

@@ -261,9 +261,9 @@ public:
NanoVG();

/**
Constructor using custom atlas size.
Constructor using custom text atlas size.
*/
NanoVG(int atlasWidth, int atlasHeight);
NanoVG(int textAtlasWidth, int textAtlasHeight);

/**
Destructor.


+ 2
- 2
dgl/src/NanoVG.cpp View File

@@ -128,8 +128,8 @@ NanoVG::NanoVG()
DISTRHO_SAFE_ASSERT_RETURN(fContext != nullptr,);
}

NanoVG::NanoVG(int atlasWidth, int atlasHeight)
: fContext(nvgCreateGL(atlasWidth, atlasHeight, NVG_ANTIALIAS))
NanoVG::NanoVG(int textAtlasWidth, int textAtlasHeight)
: fContext(nvgCreateGL(textAtlasWidth, textAtlasHeight, NVG_ANTIALIAS))
{
DISTRHO_SAFE_ASSERT_RETURN(fContext != nullptr,);
}


Loading…
Cancel
Save