blob: 82db031aba1b28642792eb8e4eb3f002b171ce16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert, R. Belmont
//============================================================
//
// video.h - SDL implementation of MAME video routines
//
// SDLMAME by Olivier Galibert and R. Belmont
//
//============================================================
#ifndef __SDLVIDEO__
#define __SDLVIDEO__
#include "osdsdl.h"
#include "modules/osdwindow.h"
//============================================================
// TYPE DEFINITIONS
//============================================================
class sdl_monitor_info : public osd_monitor_info
{
public:
sdl_monitor_info(const UINT64 handle, const char *monitor_device, float aspect)
: osd_monitor_info(&m_handle, monitor_device, aspect), m_handle(handle)
{
sdl_monitor_info::refresh();
}
// STATIC
static void init();
static void exit();
private:
void virtual refresh() override;
UINT64 m_handle; // handle to the monitor
};
#endif
|