Decompile 2 functions in Source/Client/ModeFadeOut.cpp, Source/Client/ModeFadeOut.h, ...
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
This commit is contained in:
parent
f3ceb09e9d
commit
c60cbe211b
5 changed files with 77 additions and 0 deletions
16
Source/Render/BitmapDrawing.cpp
Normal file
16
Source/Render/BitmapDrawing.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue