Update release

This commit is contained in:
Zihan Chen
2021-02-17 19:26:31 -08:00
parent 7575aecd8a
commit 3b9971e1b4
2 changed files with 12 additions and 1 deletions
-1
View File
@@ -23990,7 +23990,6 @@ GuiToolstripGroupContainer
}
stackComposition->SetDirection(direction);
splitterThemeName = splitterThemeName;
groupCollection->RebuildSplitters();
UpdateLayout();
}
+12
View File
@@ -12549,6 +12549,7 @@ namespace vl
protected:
Ptr<WinBitmap> buffer;
INativeWindow* window;
bool needPaintAfterResize = false;
vint DetermineBufferLength(vint minSize, vint minBound, vint maxBound, vint currentSize)
{
@@ -12583,6 +12584,7 @@ namespace vl
if (buffer->GetWidth() != size.x.value || buffer->GetHeight() != size.y.value)
{
buffer = 0;
needPaintAfterResize = true;
}
}
if (!buffer)
@@ -12604,6 +12606,16 @@ namespace vl
void Paint()
{
// for the first Paint() call after Moved()
// trigger the global timer so that all GuiGraphicsHost with needToRender=true will call Render(false)
// so that to fill the buffer to prevent from seeing a black frame
// but it still leave some black color since the layout may needs more than 1 frame to finish
if (needPaintAfterResize)
{
needPaintAfterResize = false;
auto callbackService = GetCurrentController()->CallbackService();
dynamic_cast<WindowsCallbackService*>(callbackService)->InvokeGlobalTimer();
}
IWindowsForm* form=GetWindowsForm(window);
WinControlDC controlDC(form->GetWindowHandle());
controlDC.Draw(0, 0, buffer);