Browse Source

Fix minor typos

pull/20/merge
falkTX 8 years ago
parent
commit
055dbe8bfb
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      dgl/NanoVG.hpp
  2. +1
    -1
      dgl/Widget.hpp

+ 4
- 4
dgl/NanoVG.hpp View File

@@ -192,10 +192,10 @@ private:


@code @code
const char* txt = "Text me up."; const char* txt = "Text me up.";
textBounds(vg, x,y, txt, NULL, bounds);
beginPath(vg);
roundedRect(vg, bounds[0], bounds[1], bounds[2]-bounds[0], bounds[3]-bounds[1]);
fill(vg);
vg.textBounds(x,y, txt, NULL, bounds);
vg.beginPath();
vg.roundedRect(bounds[0], bounds[1], bounds[2]-bounds[0], bounds[3]-bounds[1]);
vg.fill();
@endcode @endcode


Note: currently only solid color fill is supported for text. Note: currently only solid color fill is supported for text.


+ 1
- 1
dgl/Widget.hpp View File

@@ -111,7 +111,7 @@ public:
/** /**
Mouse event. Mouse event.
@a button The button number (1 = left, 2 = middle, 3 = right). @a button The button number (1 = left, 2 = middle, 3 = right).
@a press True if the key was pressed, false if released.
@a press True if the button was pressed, false if released.
@a pos The widget-relative coordinates of the pointer. @a pos The widget-relative coordinates of the pointer.
@see onMouse @see onMouse
*/ */


Loading…
Cancel
Save