src/TexChunk.cpp in gosu-0.15.2 vs src/TexChunk.cpp in gosu-1.0.0.pre1
- old
+ new
@@ -118,10 +118,10 @@
}
if (clipped_width <= 0 || clipped_height <= 0) return;
clipped_bitmap.resize(clipped_width, clipped_height);
- clipped_bitmap.insert(original_bitmap, -clip_left, -clip_top);
+ clipped_bitmap.insert(-clip_left, -clip_top, original_bitmap);
bitmap = &clipped_bitmap;
}
glBindTexture(GL_TEXTURE_2D, tex_name());
glTexSubImage2D(GL_TEXTURE_2D, 0, this->x + x, this->y + y, bitmap->width(), bitmap->height(),