Browse Source

Fix build

pull/1/head
falkTX 10 years ago
parent
commit
7391ecf94f
2 changed files with 6 additions and 7 deletions
  1. +1
    -1
      dpf
  2. +5
    -6
      examples/widgets/ExampleColorWidget.hpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 7dbd5a7afe004df625b9dfea7f4d79cf7479f7f0
Subproject commit 04d32cdca2d3083c71d9dfbec0ec9103e059c9ba

+ 5
- 6
examples/widgets/ExampleColorWidget.hpp View File

@@ -116,24 +116,23 @@ protected:

void onResize(const ResizeEvent& ev) override
{
const int width = ev.size.getWidth();
const int height = ev.size.getHeight();
const uint width = ev.size.getWidth();
const uint height = ev.size.getHeight();

// full bg
bgFull = Rectangle<int>(0, 0, width, height);
bgFull = Rectangle<uint>(0, 0, width, height);

// small bg, centered 2/3 size
bgSmall = Rectangle<int>(width/6, height/6, width*2/3, height*2/3);
bgSmall = Rectangle<uint>(width/6, height/6, width*2/3, height*2/3);
}

char cur;
bool reverse;
int r, g, b;

Rectangle<int> bgFull, bgSmall;
Rectangle<uint> bgFull, bgSmall;
};


// ------------------------------------------------------

#endif // EXAMPLE_COLOR_WIDGET_HPP_INCLUDED

Loading…
Cancel
Save