Maintenance: C9: the bitmap decoders and pixel helpers are CBitmapRes members in the original (they call Unload through the vtable at
Batch #18237 by ragnarok-clanker: forced by an admin (1 lower score(s), 14 changed function(s)); checked with 437 compiled unit(s), including every includer of Source/Resource/Bitmap/BitmapImage.h, Source/Resource/Bitmap/BitmapResource.h, Source/UI/Window/UIWindow.h.
This commit is contained in:
parent
a16afbf55e
commit
da97b80236
11 changed files with 114 additions and 114 deletions
|
|
@ -49,19 +49,19 @@ bool CBitmapRes::Decode(const char* name, const void* data, int bytes, bool icon
|
|||
}
|
||||
|
||||
if (lstrcmpiA(extension, ".bmp") == 0) {
|
||||
return this->image.DecodeBitmap(data, bytes, iconOnly);
|
||||
return this->DecodeBitmap(data, bytes, iconOnly);
|
||||
}
|
||||
|
||||
if (lstrcmpiA(extension, ".tga") == 0) {
|
||||
return this->image.DecodeTga(data, bytes);
|
||||
return this->DecodeTga(data, bytes);
|
||||
}
|
||||
|
||||
if (lstrcmpiA(extension, ".jpg") == 0) {
|
||||
return this->image.DecodeJpeg(data, bytes);
|
||||
return this->DecodeJpeg(data, bytes);
|
||||
}
|
||||
|
||||
if (lstrcmpiA(extension, ".png") == 0) {
|
||||
return this->image.DecodePng(data, bytes, name);
|
||||
return this->DecodePng(data, bytes, name);
|
||||
}
|
||||
|
||||
ShowErrorDialog("Unsupport fileformat!", 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue