[patch] Workaround for scrolling problem on Intel GPU

147 views
Skip to first unread message

Yohei Endo

unread,
Sep 11, 2015, 11:38:46 AM9/11/15
to vim...@googlegroups.com
Hello all,

I'm using gVim on Windows 7 32bit.
When I open a text file whose lines are of different length,
move cursor to the end of line by '$', and do wheel scroll,
then characters in the lines which are scrolled out are
sometimes left drawn.
You can see screenshots at https://github.com/vim-jp/issues/issues/715 .
It is reported that the problem occurs also on 64bit Windows (7, 8.1, 10).
I don't know whether the problem occurs also on 16bit Windows or not.

According to http://www.maruo.co.jp/turukame/3/x07939_.html (in Japanese),
The cause of this problem is assumed to be an Intel GPU bug, and can be
avoided by calling GetPixel() before ScrollWindowEx().

Attached patch is to avoid the problem.

--
Yohei Endo
yoh...@gmail.com
http://yoheie.sakura.ne.jp/
intel_gpu_workaround.patch

Bram Moolenaar

unread,
Sep 12, 2015, 11:20:37 AM9/12/15
to Yohei Endo, vim...@googlegroups.com
Thanks! The solution is not at all obvious.

--
"Beware of bugs in the above code; I have only proved
it correct, not tried it." -- Donald Knuth

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages