Permalink
Browse files

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

  • Loading branch information...
1 parent 17131e0 commit 6a8ebce71dd120f129079f31550306e70ddb9b80 @kylemcdonald committed Apr 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 libs/openFrameworks/gl/ofTexture.cpp
  2. +1 −1 libs/openFrameworks/graphics/ofImage.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());
}
//------------------------------------
@@ -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());
}
//------------------------------------

0 comments on commit 6a8ebce

Please sign in to comment.