Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Issue with RenderHandler width, height on OSX
Browse files Browse the repository at this point in the history
Update for 4.8
  • Loading branch information
ashea-code committed Jun 14, 2015
1 parent 50a362c commit 82cd4be
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ ThirdParty/cef/Linux/*
ThirdParty/cef/Mac/*
ThirdParty/cef/Win/*
*.dll
*.lib
*.lib
Intermediate/*
4 changes: 2 additions & 2 deletions Source/Blu/Private/BluEye.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ void UBluEye::ResizeBrowser(int32 NewWidth, int32 NewHeight)
Height = NewHeight;

// Update our render handler
renderer->width = NewWidth;
renderer->height = NewHeight;
renderer->Width = NewWidth;
renderer->Height = NewHeight;

// Also update the Region definition
RenderParams.UpdateRegions->Height = NewHeight;
Expand Down
6 changes: 3 additions & 3 deletions Source/Blu/Private/RenderHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

RenderHandler::RenderHandler(int32 width, int32 height, UBluEye* ui)
{
this->width = width;
this->height = height;
this->Width = width;
this->Height = height;
this->parentUI = ui;
}

bool RenderHandler::GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect)
{
rect = CefRect(0, 0, width, height);
rect = CefRect(0, 0, Width, Height);
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions Source/Blu/Public/RenderHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class RenderHandler : public CefRenderHandler

public:

int32 width;
int32 height;
int32 Width;
int32 Height;

// CefRenderHandler interface
bool GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect) override;
Expand Down

0 comments on commit 82cd4be

Please sign in to comment.