mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
20 lines
563 B
C++
20 lines
563 B
C++
#include "stdafx.h"
|
|
|
|
#include "IRenderWebBrowser.h"
|
|
#include "RenderClientAdapter.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
void RenderClientAdapter::OnPaint(CefRefPtr<CefBrowser> browser, PaintElementType type, const RectList& dirtyRects, const void* buffer)
|
|
{
|
|
int width, height;
|
|
browser->GetSize(type, width, height);
|
|
|
|
_renderBrowserControl->SetBuffer(width, height, buffer);
|
|
}
|
|
|
|
void RenderClientAdapter::OnCursorChange(CefRefPtr<CefBrowser> browser, CefCursorHandle cursor)
|
|
{
|
|
_renderBrowserControl->SetCursor(cursor);
|
|
}
|
|
} |