core: Fix cacheAsBitmap size limit & remove print statement

This commit is contained in:
nosamu 2023-07-20 21:05:40 -05:00 committed by Nathan Adams
parent 3607a5fb23
commit 2ee127ccb6
1 changed files with 1 additions and 2 deletions

View File

@ -147,7 +147,7 @@ impl BitmapCache {
}
let acceptable_size = if swf_version > 9 {
let total = actual_width as u32 * actual_height as u32;
actual_width < 8191 && actual_height < 8191 && total < 1677215
actual_width < 8191 && actual_height < 8191 && total < 16777215
} else {
actual_width < 2880 && actual_height < 2880
};
@ -156,7 +156,6 @@ impl BitmapCache {
&& actual_height > 0
&& acceptable_size
{
tracing::info!("{} x {}", actual_width, actual_height);
let handle = renderer.create_empty_texture(actual_width as u32, actual_height as u32);
self.bitmap = handle.ok().map(|handle| BitmapInfo {
width: actual_width,