Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaali committed Feb 27, 2012
1 parent 820c44c commit 0e81a97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions example-ofxUIAllWidgets/src/testApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ void testApp::draw()
}

ofPopStyle();

ofSetRectMode(OF_RECTMODE_CENTER);
}
//--------------------------------------------------------------
void testApp::guiEvent(ofxUIEventArgs &e)
Expand Down
11 changes: 5 additions & 6 deletions src/ofxUICanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ class ofxUICanvas : public ofxUIWidget
ofPushStyle();
glDisable(GL_DEPTH_TEST);
ofEnableBlendMode(OF_BLENDMODE_ALPHA);
ofSetRectMode(OF_RECTMODE_CORNER);
ofSetLineWidth(1.0);

if(draw_back)
{
ofFill();
Expand Down Expand Up @@ -553,11 +556,7 @@ class ofxUICanvas : public ofxUIWidget
ofNoFill();
ofSetColor(color_outline_highlight);
paddedRect->draw();
}

ofPopStyle();

ofSetLineWidth(1.0);
}

for(int i = widgets.size()-1; i >= 0; i--)
{
Expand All @@ -568,7 +567,7 @@ class ofxUICanvas : public ofxUIWidget
}

glDisable(GL_DEPTH_TEST);

ofPopStyle();
}

void exit()
Expand Down
2 changes: 1 addition & 1 deletion src/ofxUIRotarySlider.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class ofxUIRotarySlider : public ofxUIWidget

ofPushMatrix();
ofTranslate(rect->getX(),rect->getY());

ofBeginShape();

{
Expand Down

0 comments on commit 0e81a97

Please sign in to comment.