You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Fixed ConsoleBrowser2 resize issues
Renamed TCEFBrowserBitmap.BeginBufferDraw to TCEFBrowserBitmap.BeginDraw Renamed TCEFBrowserBitmap.EndBufferDraw to TCEFBrowserBitmap.EndDraw Renamed TCEFBrowserBitmap.UpdateBufferDimensions to TCEFBrowserBitmap.UpdateDimensions Removed TCEFBrowserBitmap.BufferIsResize
This commit is contained in:
@ -343,7 +343,7 @@ begin
|
||||
FResizeCS.Acquire;
|
||||
TempForcedResize := False;
|
||||
|
||||
if FBrowserBitmap.BeginBufferDraw then
|
||||
if FBrowserBitmap.BeginDraw then
|
||||
begin
|
||||
if (kind = PET_POPUP) then
|
||||
begin
|
||||
@ -367,7 +367,7 @@ begin
|
||||
end
|
||||
else
|
||||
begin
|
||||
TempForcedResize := FBrowserBitmap.UpdateBufferDimensions(aWidth, aHeight) or not(FBrowserBitmap.BufferIsResized(False));
|
||||
TempForcedResize := FBrowserBitmap.UpdateDimensions(aWidth, aHeight);
|
||||
TempWidth := FBrowserBitmap.Width;
|
||||
TempHeight := FBrowserBitmap.Height;
|
||||
TempScanlineSize := FBrowserBitmap.ScanlineSize;
|
||||
@ -423,7 +423,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
FBrowserBitmap.EndBufferDraw;
|
||||
FBrowserBitmap.EndDraw;
|
||||
|
||||
if (kind = PET_VIEW) then
|
||||
begin
|
||||
@ -540,13 +540,10 @@ begin
|
||||
if FResizing then
|
||||
FPendingResize := True
|
||||
else
|
||||
if FBrowserBitmap.BufferIsResized then
|
||||
FBrowser.Invalidate(PET_VIEW)
|
||||
else
|
||||
begin
|
||||
FResizing := True;
|
||||
FBrowser.WasResized;
|
||||
end;
|
||||
begin
|
||||
FResizing := True;
|
||||
FBrowser.WasResized;
|
||||
end;
|
||||
finally
|
||||
FResizeCS.Release;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user