Re: Ask for help about implementing double buffer in gui_win32.c

2017-01-17 Fir de Conversatie Charles
Hi,

Maybe check that intel_gpu_workaround was called to s_hdc_real instead of
s_hdc?

On Tue, Jan 17, 2017 at 2:10 PM, skywind3000  wrote:

> Recently, I am trying to implement a double buffer for gui_win32.c by:
>
> 1. rename s_hdc to s_hdc_real
> 2. creat a off-screen HDC named s_hdc, all the drawing from gui_win32.c
> should be redirected to it.
> 3. BitBlt from s_hdc to s_hdc_real after WndProc, the screen should be
> updated.
>
> It works in most of time, but when I press CTRL+D to scroll down half a
> screen
> I find only the bottom half of TextArea has been updated, the top half
> hasn't been updated yet, there are still old characters before CTRL+D on
> the top half.
>
> I search all the reference of s_hdc and s_textArea but can not find any
> clue.
>
> Can anybody figure out what's wrong here ?
>
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ask for help about implementing double buffer in gui_win32.c

2017-01-16 Fir de Conversatie skywind3000
Recently, I am trying to implement a double buffer for gui_win32.c by:

1. rename s_hdc to s_hdc_real
2. creat a off-screen HDC named s_hdc, all the drawing from gui_win32.c should 
be redirected to it.
3. BitBlt from s_hdc to s_hdc_real after WndProc, the screen should be updated.

It works in most of time, but when I press CTRL+D to scroll down half a screen
I find only the bottom half of TextArea has been updated, the top half hasn't 
been updated yet, there are still old characters before CTRL+D on the top half.

I search all the reference of s_hdc and s_textArea but can not find any clue.

Can anybody figure out what's wrong here ?


-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.