Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp
--- a/src/gui_dwrite.cpp
+++ b/src/gui_dwrite.cpp
@@ -1034,7 +1034,7 @@ DWriteContext::DrawText(const WCHAR *tex
TextRenderer renderer(this);
TextRendererContext context = { color, FLOAT(cellWidth), 0.0f };
- textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y) - 0.5f);
+ textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y));
}
@k-takata
k-takata / buildvim.bat
Created March 13, 2019 04:16
Batch file for building (g)Vim using MSVC
@echo off
setlocal
:: Default I/F versions.
set LUA_VER=51
set PERL_VER=528
set PYTHON_VER=27
set PYTHON3_VER=37
set RUBY_VER=25
set RUBY_API_VER_LONG=2.5.0
# HG changeset patch
# Parent 8d0990dda8627ba9b7e2647b8f586deb0090f81e
diff --git a/src/os_win32.c b/src/os_win32.c
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1463,6 +1463,8 @@ handle_focus_event(INPUT_RECORD ir)
ui_focus_change((int)g_fJustGotFocus);
}
commit 5897d165fab11f2fde07afe62cbc996895882bc3
Author: K.Takata <kentkt@csc.jp>
Date: Wed Feb 13 20:21:55 2019 +0900
Simplify fname_case()
diff --git a/src/os_win32.c b/src/os_win32.c
index 10ca41881..ca4a22839 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@k-takata
k-takata / gist:014303bde8afe8cb1e5acbb26314ba31
Created December 13, 2018 14:16
Vim 8.0.0001 to 8.0.1850 patch contributor ranking
115 (Christian Brabandt)
94 (Dominique Pelle)
93 (Yasuhiro Matsumoto)
85 (Yegappan Lakshmanan)
81 (Ken Takata)
65 (Ozaki Kiichi)
48 (Hirohito Higashi)
46 (Kazunobu Kuriyama)
32 (James McCoy)
18 (John Marriott)
@k-takata
k-takata / 0001-Import-PR-3474-by-ntak.patch
Last active October 29, 2018 03:32
Import the ConPTY patch for Vim at vim/vim#3474 by @ntak
From ae8f04efd02e0521c08b2abd9b32c3525a863121 Mon Sep 17 00:00:00 2001
From: "K.Takata" <kentkt@csc.jp>
Date: Mon, 29 Oct 2018 12:08:17 +0900
Subject: [PATCH] Import PR#3474 by @ntak
---
src/channel.c | 39 +++-
src/evalfunc.c | 4 +
src/option.c | 7 +-
src/os_mswin.c | 2 +
@k-takata
k-takata / codecs.ini.diff
Created February 26, 2018 15:11
Diff to sinkuhadouken_171022
--- codecs.ini.org 2017-10-22 00:00:00.000000000 +0900
+++ codecs.ini 2018-02-04 22:42:51.865200100 +0900
@@ -44,11 +44,14 @@
AVC1 H.264(AVC1)
AVRN Avid M-JPEG(AVRN)
BGR k(RGB32)
+BA81 Raw 8bit RGB Bayer (BA81)
BINK Bink Video
BLZ0 DivX 5.x(BLZ0)
BT20 Conexant Prosumer Video
" See: https://github.com/vim-jp/vital.vim/pull/564
" Execute with: vim -S is_comp.vim
profile start is_comp_prof.log
profile func Is_comparable*
profile func Main
let s:types = {
\ 'number': 0,
\ 'string': 1,
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp
index 20ac338d7..dcd2bf559 100644
--- a/src/gui_dwrite.cpp
+++ b/src/gui_dwrite.cpp
@@ -222,6 +222,7 @@ struct DWriteContext {
ID2D1Factory *mD2D1Factory;
ID2D1DCRenderTarget *mRT;
+ ID2D1GdiInteropRenderTarget *mGDIRT;
ID2D1SolidColorBrush *mBrush;
@k-takata
k-takata / dont-use-bmpRT.patch
Created November 23, 2017 03:17
Don't use bmpRT. Use mRT directly for DirectWrite.
diff --git a/src/gui.c b/src/gui.c
--- a/src/gui.c
+++ b/src/gui.c
@@ -2419,6 +2419,7 @@ gui_outstr_nowrap(
if (flags & GUI_MON_TRS_CURSOR)
draw_flags |= DRAW_TRANSP;
+ gui_mch_draw_string_start();
/*
* Draw the text.