aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/glcddc.h
blob: 6d5f383486021b598e9de05fa52b38bfff297dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __glcddc_h
#define __glcddc_h

#include "grc.h"
#include <lib/gdi/lcd.h>

class gLCDDC: public gDC
{
	eLCD *lcd;
	static gLCDDC *instance;
	int update;
	void exec(gOpcode *opcode);
	gSurface surface;
public:
	gLCDDC();
	~gLCDDC();
	void setUpdate(int update);
	static int getInstance(ePtr<gLCDDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
	int islocked() { return lcd->islocked(); }
};

#endif