wine_compat.cpp 387 B

123456789101112131415
  1. #include "wine_compat.h"
  2. #include <Windows.h>
  3. namespace sunrise::client::graphics {
  4. /** Opens and releases the screen device context, which is what makes Wine attach its display. */
  5. void initialize_wine_display() noexcept {
  6. const HDC screen = GetDC(nullptr);
  7. if (screen != nullptr) {
  8. (void)ReleaseDC(nullptr, screen);
  9. }
  10. }
  11. } // namespace sunrise::client::graphics