Decompile fn_12724 (UIShortCutWnd::Slot32)
Batch #11657 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_12724 UIShortCutWnd::Slot32: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
15d92d48d5
commit
03e489f2d0
1 changed files with 1 additions and 14 deletions
|
|
@ -6,19 +6,6 @@
|
|||
#include "UI/Window/WindowManagerWindows.h"
|
||||
#include "UI/Window/UIWindowMgr.h"
|
||||
|
||||
namespace {
|
||||
// INLINED
|
||||
void ScreenPosition(const UIWindow& window, int& x, int& y) {
|
||||
x = (x + window.geometry.x);
|
||||
y = (y + window.geometry.y);
|
||||
|
||||
for (const UIWindow* node = window.parent; node; node = node->parent) {
|
||||
x = (x + node->geometry.x);
|
||||
y = (y + node->geometry.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x009332D0
|
||||
// FUNCTION: fn_12724
|
||||
void UIShortCutWnd::Slot32(int x, int y) {
|
||||
|
|
@ -79,7 +66,7 @@ void UIShortCutWnd::Slot32(int x, int y) {
|
|||
|
||||
int originX = 0;
|
||||
int originY = 0;
|
||||
ScreenPosition(window, originX, originY);
|
||||
window.ToScreen(originX, originY);
|
||||
const int targetX = (originX + x);
|
||||
int adjustment = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue