mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-20 04:05:13 +01:00
overlays: Fix image size estimation
This commit is contained in:
parent
6d52415d50
commit
36cdaac327
|
|
@ -40,7 +40,7 @@ namespace rsx
|
|||
image_info_base() {}
|
||||
virtual ~image_info_base() {}
|
||||
virtual const u8* get_data() const = 0;
|
||||
virtual usz size_bytes() const { return static_cast<usz>(w * h * bpp); }
|
||||
virtual usz size_bytes() const { return static_cast<usz>(w * h * 4); } // UI images get converted to RGBA8
|
||||
|
||||
std::span<const u8> as_span() const { return { get_data(), size_bytes() }; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue