mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
fix MovieTexture::orig_file_size bug
This commit is contained in:
parent
78e138d9b9
commit
22fa5dff1e
@ -199,7 +199,12 @@ do_recalculate_image_properties(CDWriter &cdata, const LoaderOptions &options) {
|
||||
do_reconsider_image_properties(x_max, y_max, alpha?4:3,
|
||||
T_unsigned_byte, cdata->_pages.size(),
|
||||
options);
|
||||
do_set_pad_size(x_max - x_size, y_max - y_size, 0);
|
||||
_orig_file_x_size = cdata->_video_width;
|
||||
_orig_file_y_size = cdata->_video_height;
|
||||
|
||||
do_set_pad_size(max(_x_size - _orig_file_x_size, 0),
|
||||
max(_y_size - _orig_file_y_size, 0),
|
||||
0);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user