Refactor out wlr_output_mode_state

This commit is contained in:
Drew DeVault 2017-08-14 08:03:51 -04:00
parent f11b38f97a
commit c8c6619146
3 changed files with 13 additions and 16 deletions

View file

@ -133,8 +133,8 @@ enum wlr_drm_output_state {
WLR_DRM_OUTPUT_CONNECTED,
};
struct wlr_output_mode_state {
struct wlr_wl_output_mode *wlr_mode;
struct wlr_drm_output_mode {
struct wlr_output_mode wlr_mode;
drmModeModeInfo mode;
};

View file

@ -4,10 +4,7 @@
#include <wlr/util/list.h>
#include <stdbool.h>
struct wlr_output_mode_state;
struct wlr_output_mode {
struct wlr_output_mode_state *state;
uint32_t flags; // enum wl_output_mode
int32_t width, height;
int32_t refresh; // mHz