divyang4481 / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

WM_TIMER bug in PluginWindowWin.cpp #78

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
line 103 in PluginWindowWin.cpp

        case WM_PAINT:
        {
            RefreshEvent ev;
            if (!SendEvent(&ev)) {
                HDC hdc;
                PAINTSTRUCT ps;
                hdc = BeginPaint(m_hWnd, &ps);
                // Release the device context
                EndPaint(m_hWnd, &ps);
            }
        }

needs a break at the end, otherwise it bleeds into the WM_TIMER handler.

I found this when I tried to use SetTimer and the TimerEvent handler was being 
called on WM_PAINT events.

Original issue reported on code.google.com by YottoK...@gmail.com on 28 Sep 2010 at 5:08

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 1f54d03c6e.

Original comment by georg.fritzsche on 28 Sep 2010 at 10:26

GoogleCodeExporter commented 8 years ago
Thanks, fixed now.

Original comment by georg.fritzsche on 28 Sep 2010 at 10:27