mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 06:15:31 +00:00
Fix bug where we forgot to store the new height and width
This commit is contained in:
parent
87b9aa6856
commit
1424765866
|
@ -12,7 +12,10 @@ static inline T sad( const T &a, const T &b ) {
|
|||
return (a > b)? a - b : b - a;
|
||||
}
|
||||
|
||||
Image::Image(const CompressedImage &ci) {
|
||||
Image::Image(const CompressedImage &ci)
|
||||
: m_Width(ci.GetWidth())
|
||||
, m_Height(ci.GetHeight())
|
||||
{
|
||||
unsigned int bufSz = ci.GetWidth() * ci.GetHeight() * 4;
|
||||
m_PixelData = new uint8[ bufSz ];
|
||||
if(!m_PixelData) { fprintf(stderr, "%s\n", "Out of memory!"); return; }
|
||||
|
|
Loading…
Reference in a new issue