This keeps MessageBoxs from validation on Windows from hanging the
demos, while allowing the demo to animate
break;
case WM_PAINT:
demo_run(&demo);
- return 0;
+ break;
default:
break;
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
+ RedrawWindow(demo.window, NULL, NULL, RDW_INTERNALPAINT);
}
demo_cleanup(&demo);
case WM_PAINT:
if (demo.prepared) {
demo_run(&demo);
- return 0;
+ break;
}
default:
break;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
+ RedrawWindow(demo.window, NULL, NULL, RDW_INTERNALPAINT);
}
demo_cleanup(&demo);