summaryrefslogtreecommitdiff
path: root/kms++/src/videomode.cpp
blob: 30d47f8d2ba82d07cfa1487a9a21de813f8871aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <xf86drm.h>
#include <xf86drmMode.h>

#include <kms++/kms++.h>
#include "helpers.h"

using namespace std;

namespace kms
{

unique_ptr<Blob> Videomode::to_blob(Card& card) const
{
	drmModeModeInfo drm_mode = video_mode_to_drm_mode(*this);

	return unique_ptr<Blob>(new Blob(card, &drm_mode, sizeof(drm_mode)));
}

}