Fix viewer bug where pages would not load unless the mouse was wiggled...

This commit is contained in:
rpotts 1998-07-02 23:34:30 +00:00
Родитель 78385ec9aa
Коммит e8476a622a
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -317,15 +317,20 @@ RunViewer(HANDLE instance, HANDLE prevInstance, LPSTR cmdParam, int nCmdShow, ns
// Process messages
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
if (!JSConsole::sAccelTable ||
BOOL bContinue = TRUE;
while (bContinue) {
if (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
if (!JSConsole::sAccelTable ||
!gConsole ||
!gConsole->GetMainWindow() ||
!TranslateAccelerator(gConsole->GetMainWindow(), JSConsole::sAccelTable, &msg)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
NET_PollSockets();
}
bContinue = (msg.message != WM_QUIT);
}
NET_PollSockets();
}
aViewer->CleanupViewer(dl);