Fix grabbing code when DRM is enabled and X11 is disabled (#1956)

This commit is contained in:
James Le Cuirot 2023-12-31 20:57:45 +00:00 • committed by GitHub
commit 64be0aa67a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,9 +51,6 @@ namespace platf::x11 {
xdisplay_t xdisplay_t
make_display(); make_display();
#else #else
// It's never something different from nullptr
util::safe_ptr<_XDisplay, std::default_delete<_XDisplay>>;
class cursor_t { class cursor_t {
public: public:
static std::optional<cursor_t> static std::optional<cursor_t>
@ -65,7 +62,7 @@ namespace platf::x11 {
blend(img_t &, int, int) {} blend(img_t &, int, int) {}
}; };
xdisplay_t void *
make_display() { return nullptr; } make_display() { return nullptr; }
#endif #endif
} // namespace platf::x11 } // namespace platf::x11