예제 #1
0
void OpenGLSdlGraphicsManager::displayModeChangedMsg() {
	const char *newModeName = getCurrentModeName();
	if (newModeName) {
		char buffer[128];
		sprintf(buffer, "Current display mode: %s\n%d x %d -> %d x %d",
			newModeName,
			_videoMode.screenWidth * _videoMode.scaleFactor,
			_videoMode.screenHeight * _videoMode.scaleFactor,
			_hwscreen->w, _hwscreen->h
			);
		displayMessageOnOSD(buffer);
	}
}
예제 #2
0
void OpenGLSdlGraphicsManager::displayModeChangedMsg() {
	const char *newModeName = getCurrentModeName();
	if (newModeName) {
		const int scaleFactor = getScale();

		Common::String osdMessage = Common::String::format(
			"%s: %s\n%d x %d -> %d x %d",
			_("Current display mode"),
			newModeName,
			_videoMode.screenWidth * scaleFactor,
			_videoMode.screenHeight * scaleFactor,
			_hwscreen->w, _hwscreen->h
			);
		displayMessageOnOSD(osdMessage.c_str());
	}
}