Skip to content

Commit

Permalink
use direct2d and direcwrite to paint IME candidate window
Browse files Browse the repository at this point in the history
  • Loading branch information
fanlumaster committed Jan 28, 2025
1 parent 2fb0477 commit 5d19d88
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 441 deletions.
Binary file added image/FeatherIME.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions src/Drawing/D2DSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ void Direct2DSource::ReleaseWindowD2DResources()

void Direct2DSource::ClearWithDirect2D(HWND hwnd)
{
if (!pRenderTarget)
return;
pRenderTarget->BeginDraw();
pRenderTarget->Clear(D2D1::ColorF(0, 0, 0, 0));
HRESULT hr = pRenderTarget->EndDraw();
Expand Down
Loading

0 comments on commit 5d19d88

Please sign in to comment.