Batch #1037 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review. - fn_17847 FadeOutMode: logic confirmed by peer review - fn_17148 DrawBitmapResource: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/Client/ModeFadeOut.cpp, Source/Render/BitmapDrawing.cpp
16 lines
581 B
C++
16 lines
581 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(system, x, y, bitmap->image.width, bitmap->image.height, 0xFFFFFFFF);
|
|
delete surface;
|
|
}
|