Ejemplo n.º 1
0
QStringList CVBAOptions::getCommandArgs() {
	QStringList Args;
	
	if(getFullscreen()==true) Args.append("-F");
	if(getScale()>1) Args.append("-"+QString::number(getScale()));
	
	return Args;
}
Ejemplo n.º 2
0
		void setFullscreen(GameWindow& mWindow, bool mFullscreen)
		{
			fullscreen = mFullscreen;

			mWindow.setSize(getWidth(), getHeight());
			mWindow.setFullscreen(getFullscreen());
			mWindow.setMouseCursorVisible(false);

			recalculateSizes();
		}
Ejemplo n.º 3
0
		void setCurrentResolutionAuto(GameWindow& mWindow)
		{
			if(fullscreen)
			{
				fullscreenAutoResolution = true;
				applyAutoFullscreenResolution();
			}
			else
			{
				windowedAutoResolution = true;
				applyAutoWindowedResolution();
			}

			mWindow.setSize(getWidth(), getHeight());
			mWindow.setFullscreen(getFullscreen());
			mWindow.setMouseCursorVisible(false);
			recalculateSizes();
		}
Ejemplo n.º 4
0
		void setCurrentResolution(GameWindow& mWindow, unsigned int mWidth, unsigned int mHeight)
		{
			if(fullscreen)
			{
				fullscreenAutoResolution = false;
				fullscreenWidth = mWidth;
				fullscreenHeight = mHeight;
			}
			else
			{
				windowedAutoResolution = false;
				windowedWidth = mWidth;
				windowedHeight = mHeight;
			}

			mWindow.setSize(getWidth(), getHeight());
			mWindow.setFullscreen(getFullscreen());
			mWindow.setMouseCursorVisible(false);
			recalculateSizes();
		}