X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fcef_capture.cpp;h=09c451fa2c7b6dff968f9b828e6c08f42a9d570b;hb=0b776ba19a0b0703f87e5529b2e4f82af6b50435;hp=b6b8cca489ff782182541101a1db372ac1ab735a;hpb=eeda8995329601f9f4e35047358400833eeae68e;p=nageru diff --git a/nageru/cef_capture.cpp b/nageru/cef_capture.cpp index b6b8cca..09c451f 100644 --- a/nageru/cef_capture.cpp +++ b/nageru/cef_capture.cpp @@ -246,16 +246,15 @@ void NageruCEFClient::OnPaint(CefRefPtr browser, PaintElementType ty parent->OnPaint(buffer, width, height); } -bool NageruCEFClient::GetViewRect(CefRefPtr browser, CefRect &rect) +void NageruCEFClient::GetViewRect(CefRefPtr browser, CefRect &rect) { - return parent->GetViewRect(rect); + parent->GetViewRect(rect); } -bool CEFCapture::GetViewRect(CefRect &rect) +void CEFCapture::GetViewRect(CefRect &rect) { lock_guard lock(resolution_mutex); rect = CefRect(0, 0, width, height); - return true; } void NageruCEFClient::OnLoadEnd(CefRefPtr browser, CefRefPtr frame, int httpStatusCode)