rodecomp/Source/Render/BitmapDrawing.cpp
ragnarok-clanker 54b45180a2 Decompile 5 functions in Source/Contents/MapInfoMgr.cpp, Source/Render/BitmapDrawing.cpp, ...
Batch #16532 by eAthena: 0 byte-identical, 5 confirmed by peer review.

- fn_01846 CDCBitmap::Draw: logic confirmed by peer review
- fn_17238 UIWindowMgr::DrawWindows: logic confirmed by peer review
- fn_06493 CMapInfoMgr::DrawMapName: logic confirmed by peer review
- fn_17148 DrawBitmapResource: logic confirmed by peer review
- fn_01854 BitmapTextureCache::Update: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, br4yan
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-10 23:12:56 +00:00

16 lines
573 B
C++

#include "Render/BitmapDrawing.h"
#include "Render/DeviceContext/DCBitmap.h"
#include "Resource/Bitmap/BitmapResource.h"
// OFFSET: 0x00A8FC30
// FUNCTION: fn_17148
void DrawBitmapResource(CRenderSystemBase& system, int x, int y, const CBitmapRes* bitmap) {
if (!bitmap) {
return;
}
CDCBitmap* surface = CreateBitmapDC(bitmap->image.width, bitmap->image.height, true);
surface->Copy(0, 0, bitmap->image.width, bitmap->image.height, bitmap->image.pixels, true);
surface->Draw(x, y, bitmap->image.width, bitmap->image.height, 0xFFFFFFFF);
delete surface;
}