From 7c5a3514dd6e907866bddcbb09b4d9cbd958dd8e Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 29 Jul 2012 15:09:53 +0200 Subject: Video mode changing - added video mode querying & changing - added joystick querying & changing - cleaned up CApplication interface --- src/graphics/core/device.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/graphics/core/device.h') diff --git a/src/graphics/core/device.h b/src/graphics/core/device.h index ae612b7..1f6cacf 100644 --- a/src/graphics/core/device.h +++ b/src/graphics/core/device.h @@ -25,6 +25,7 @@ #include "graphics/core/material.h" #include "graphics/core/texture.h" #include "graphics/core/vertex.h" +#include "math/intsize.h" #include "math/matrix.h" #include @@ -43,10 +44,8 @@ namespace Gfx { */ struct DeviceConfig { - //! Screen width - int width; - //! Screen height - int height; + //! Screen size + Math::IntSize size; //! Bits per pixel int bpp; //! Full screen @@ -64,8 +63,7 @@ struct DeviceConfig //! Loads the default values inline void LoadDefault() { - width = 800; - height = 600; + size = Math::IntSize(800, 600); bpp = 32; fullScreen = false; resizeable = false; -- cgit v1.2.3-1-g7c22