aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux/dingux.cpp
blob: a253e8bce135c62475e02ed7bd510b445c1f1085 (plain)
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
#include "backends/platform/dingux/dingux.h"

#if defined(DINGUX)

bool OSystem_SDL_Dingux::hasFeature(Feature f) {
	return
	    (f == kFeatureAspectRatioCorrection) ||
	    (f == kFeatureCursorHasPalette);
}

void OSystem_SDL_Dingux::setFeatureState(Feature f, bool enable) {
	switch (f) {
	case kFeatureAspectRatioCorrection:
		setAspectRatioCorrection(enable);
		break;
	default:
		break;
	}
}

bool OSystem_SDL_Dingux::getFeatureState(Feature f) {
	assert(_transactionMode == kTransactionNone);

	switch (f) {
	case kFeatureAspectRatioCorrection:
		return _videoMode.aspectRatioCorrection;
	default:
		return false;
	}
}

#endif