Decompile 2 functions in Source/UI/Edit/UIEditCtrl.cpp
Batch #11772 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_10977 UIEditCtrl::MoveCandidateWindow: byte-identical - fn_10978 UIEditCtrl::MoveReadingWindow: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
3fa014f408
commit
35a3e2df5e
1 changed files with 2 additions and 12 deletions
|
|
@ -682,12 +682,7 @@ void UIEditCtrl::MoveCandidateWindow(int x) {
|
|||
|
||||
int left = x;
|
||||
int top = this->geometry.height + 6;
|
||||
left += this->geometry.x;
|
||||
top += this->geometry.y;
|
||||
for (const UIWindow* node = this->parent; node != nullptr; node = node->parent) {
|
||||
left += node->geometry.x;
|
||||
top += node->geometry.y;
|
||||
}
|
||||
this->ToScreen(left, top);
|
||||
|
||||
if (window->geometry.width + left > g_renderer->viewport.width) {
|
||||
left = g_renderer->viewport.width - window->geometry.width;
|
||||
|
|
@ -710,12 +705,7 @@ void UIEditCtrl::MoveReadingWindow(int x) {
|
|||
|
||||
int left = x;
|
||||
int top = this->geometry.height + 6;
|
||||
left += this->geometry.x;
|
||||
top += this->geometry.y;
|
||||
for (const UIWindow* node = this->parent; node != nullptr; node = node->parent) {
|
||||
left += node->geometry.x;
|
||||
top += node->geometry.y;
|
||||
}
|
||||
this->ToScreen(left, top);
|
||||
|
||||
if (window->geometry.width + left > g_renderer->viewport.width) {
|
||||
left = g_renderer->viewport.width - window->geometry.width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue