Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
36 lines
1,017 B
C++
36 lines
1,017 B
C++
#include "Client/Browser/BrowserFrame.h"
|
|
|
|
// OFFSET: 0x00AB2610
|
|
// FUNCTION: fn_17414
|
|
void BrowserFrame::Normalize() {
|
|
if (!this->hasExternalEvents) {
|
|
return;
|
|
}
|
|
|
|
RECT rectangle;
|
|
GetWindowRect(this->browserWindow, &rectangle);
|
|
if (rectangle.right - rectangle.left != this->sizing.screenWidth || rectangle.bottom - rectangle.top != this->sizing.screenHeight) {
|
|
return;
|
|
}
|
|
|
|
this->sizing.browser->put_Visible(VARIANT_FALSE);
|
|
SetWindowLongA(this->browserWindow, GWL_STYLE, WS_CHILD);
|
|
SetParent(this->browserWindow, this->host);
|
|
this->sizing.browser->put_FullScreen(VARIANT_FALSE);
|
|
this->sizing.browser->put_AddressBar(VARIANT_FALSE);
|
|
SetParent(this->browserWindow, this->host);
|
|
SetWindowLongA(this->browserWindow, GWL_STYLE, WS_CHILD);
|
|
this->sizing.browser->put_Visible(VARIANT_TRUE);
|
|
}
|
|
|
|
// OFFSET: 0x00AB2E70
|
|
// FUNCTION: fn_17419
|
|
void BrowserFrame::Poll() {
|
|
if (!IsWindowVisible(this->host)) {
|
|
return;
|
|
}
|
|
|
|
this->Normalize();
|
|
this->sizing.Refresh();
|
|
this->cursor.Poll();
|
|
}
|