Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed bug where images were drawn using a subsection instead of resizing

  • Loading branch information...
commit 6a8ebce71dd120f129079f31550306e70ddb9b80 1 parent 17131e0
@kylemcdonald authored
View
2  libs/openFrameworks/gl/ofTexture.cpp
@@ -923,7 +923,7 @@ void ofTexture::draw(float x, float y, float w, float h){
//------------------------------------
void ofTexture::draw(float x, float y, float z, float w, float h){
- drawSubsection(x,y,z,w,h,0,0,w,h);
+ drawSubsection(x,y,z,w,h,0,0,getWidth(),getHeight());
}
//------------------------------------
View
2  libs/openFrameworks/graphics/ofImage.cpp
@@ -717,7 +717,7 @@ void ofImage_<PixelType>::draw(float x, float y, float w, float h){
//------------------------------------
template<typename PixelType>
void ofImage_<PixelType>::draw(float x, float y, float z, float w, float h){
- drawSubsection(x,y,z,w,h,0,0,w,h);
+ drawSubsection(x,y,z,w,h,0,0,getWidth(),getHeight());
}
//------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.