|
|
@@ -110,10 +110,10 @@ private: |
|
|
|
void onReshape(int width, int height) override |
|
|
|
{ |
|
|
|
// full bg |
|
|
|
bgFull = DGL::Rectangle<int>(0, 0, width, height); |
|
|
|
bgFull = Rectangle<int>(0, 0, width, height); |
|
|
|
|
|
|
|
// small bg, centered 2/3 size |
|
|
|
bgSmall = DGL::Rectangle<int>(width/6, height/6, width*2/3, height*2/3); |
|
|
|
bgSmall = Rectangle<int>(width/6, height/6, width*2/3, height*2/3); |
|
|
|
|
|
|
|
// make widget same size as window |
|
|
|
setSize(width, height); |
|
|
@@ -126,7 +126,7 @@ private: |
|
|
|
bool reverse; |
|
|
|
int r, g, b; |
|
|
|
|
|
|
|
DGL::Rectangle<int> bgFull, bgSmall; |
|
|
|
Rectangle<int> bgFull, bgSmall; |
|
|
|
}; |
|
|
|
|
|
|
|
// ------------------------------------------------------ |
|
|
|