Commit 9e2e768f authored by Olivier Teulière's avatar Olivier Teulière

* skins2/win32/win32_loop.cpp: Refresh the needed rectangle only.

   This doesn't fix totally the refresh problems on the skinned vout,
   but it improves the situation a lot.
parent bbb79284
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_loop.cpp * win32_loop.cpp
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_loop.cpp,v 1.2 2004/02/27 13:24:12 gbazin Exp $ * $Id$
* *
* Authors: Cyril Deguet <asmax@via.ecp.fr> * Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr> * Olivier Teulire <ipkiss@via.ecp.fr>
...@@ -123,8 +123,11 @@ void Win32Loop::run() ...@@ -123,8 +123,11 @@ void Win32Loop::run()
{ {
PAINTSTRUCT Infos; PAINTSTRUCT Infos;
BeginPaint( msg.hwnd, &Infos ); BeginPaint( msg.hwnd, &Infos );
EvtRefresh evt( getIntf(), 0, 0, Infos.rcPaint.right, EvtRefresh evt( getIntf(),
Infos.rcPaint.bottom ); Infos.rcPaint.left,
Infos.rcPaint.top,
Infos.rcPaint.right - Infos.rcPaint.left + 1,
Infos.rcPaint.bottom - Infos.rcPaint.top + 1 );
EndPaint( msg.hwnd, &Infos ); EndPaint( msg.hwnd, &Infos );
win.processEvent( evt ); win.processEvent( evt );
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment