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

Commit ed08f89

Browse files
committed
Better return value for Resize
1 parent 4555545 commit ed08f89

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

Source/Blu/Private/BluEye.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void UBluEye::NavForward()
236236

237237
}
238238

239-
void UBluEye::ResizeBrowser(const int32 NewWidth, const int32 NewHeight, UTexture2D*& NewTextureReference)
239+
UTexture2D* UBluEye::ResizeBrowser(const int32 NewWidth, const int32 NewHeight)
240240
{
241241

242242
// Disable the web view while we resize
@@ -262,7 +262,7 @@ void UBluEye::ResizeBrowser(const int32 NewWidth, const int32 NewHeight, UTextur
262262

263263
UE_LOG(LogBlu, Log, TEXT("BluEye was resized!"))
264264

265-
NewTextureReference = Texture;
265+
return Texture;
266266

267267
}
268268

Source/Blu/Public/BluEye.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ class BLU_API UBluEye : public UObject
215215

216216
/** Resize the browser's viewport */
217217
UFUNCTION(BlueprintCallable, Category = "Blu")
218-
void ResizeBrowser(const int32 NewWidth, const int32 NewHeight, UTexture2D*& NewTextureReference);
219-
220-
218+
UTexture2D* ResizeBrowser(const int32 NewWidth, const int32 NewHeight);
221219

222220
CefRefPtr<CefBrowser> browser;
223221

0 commit comments

Comments
 (0)