summaryrefslogtreecommitdiff
path: root/src/gui_dwrite.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-12-05 13:22:16 +0100
committerBram Moolenaar <Bram@vim.org>2017-12-05 13:22:16 +0100
commit92467d3351853de769329f62121bf34d28647546 (patch)
tree14e67e16c6f61c36a1fc691ba1ee361dd34d54de /src/gui_dwrite.h
parentce6179c799468e471c3b7fc71c9924f57a2253c5 (diff)
downloadvim-git-92467d3351853de769329f62121bf34d28647546.tar.gz
patch 8.0.1369: MS-Windows: drawing underline slow, mFallbackDC not updatedv8.0.1369
Problem: MS-Windows: drawing underline, curl and strike-throw is slow, mFallbackDC not properly updated. Solution: Several performance improvements. (Ken Takata, Taro Muraoka, Yasuhiro Matsumoto, closes #2401)
Diffstat (limited to 'src/gui_dwrite.h')
-rw-r--r--src/gui_dwrite.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gui_dwrite.h b/src/gui_dwrite.h
index 8ab2864d8..9c98c4ce0 100644
--- a/src/gui_dwrite.h
+++ b/src/gui_dwrite.h
@@ -55,11 +55,11 @@ void DWrite_Init(void);
void DWrite_Final(void);
DWriteContext *DWriteContext_Open(void);
-void DWriteContext_BindDC(DWriteContext *ctx, HDC hdc, RECT *rect);
+void DWriteContext_BindDC(DWriteContext *ctx, HDC hdc, const RECT *rect);
void DWriteContext_SetFont(DWriteContext *ctx, HFONT hFont);
void DWriteContext_DrawText(
DWriteContext *ctx,
- const WCHAR* text,
+ const WCHAR *text,
int len,
int x,
int y,
@@ -68,9 +68,12 @@ void DWriteContext_DrawText(
int cellWidth,
COLORREF color,
UINT fuOptions,
- CONST RECT *lprc,
- CONST INT * lpDx);
-void DWriteContext_FillRect(DWriteContext *ctx, RECT *rc, COLORREF color);
+ const RECT *lprc,
+ const INT *lpDx);
+void DWriteContext_FillRect(DWriteContext *ctx, const RECT *rc, COLORREF color);
+void DWriteContext_DrawLine(DWriteContext *ctx, int x1, int y1, int x2, int y2,
+ COLORREF color);
+void DWriteContext_SetPixel(DWriteContext *ctx, int x, int y, COLORREF color);
void DWriteContext_Flush(DWriteContext *ctx);
void DWriteContext_Close(DWriteContext *ctx);