Skip to content

Commit

Permalink
suppress ofColor warning
Browse files Browse the repository at this point in the history
  • Loading branch information
galsasson committed Dec 7, 2016
1 parent 53bc546 commit 224f538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/VirtualTouch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void VirtualTouch::stop(bool fireDoneEvent)
}
}

void VirtualTouch::setFingerTexture(ofTexture *tex, ofColor c, float rotation, float scale, ofVec2f hotSpotAnchor)
void VirtualTouch::setFingerTexture(ofTexture *tex, const ofColor& c, float rotation, float scale, ofVec2f hotSpotAnchor)
{
fingerTex = tex;
fingerTexColor = c;
Expand Down
2 changes: 1 addition & 1 deletion src/VirtualTouch.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class VirtualTouch
* Set this to draw a finger texture with this touch
* hotSpotAnchor is (0-1, 0-1)
*/
void setFingerTexture(ofTexture* tex, ofColor c=ofColor::white, float rotation=0.0f, float scale=1.0f, ofVec2f hotSpotAnchor=ofVec2f());
void setFingerTexture(ofTexture* tex, const ofColor& c=ofColor(255), float rotation=0.0f, float scale=1.0f, ofVec2f hotSpotAnchor=ofVec2f());

int getId() { return id; }
bool isDown() { return bDown; }
Expand Down

0 comments on commit 224f538

Please sign in to comment.