#include <iostream>
#include <SDL_timer.h>
+#include <SDL_keyboard.h>
#include "console.hpp"
#include "video/drawing_context.hpp"
#include "video/surface.hpp"
#include <config.h>
+#include <SDL_events.h>
+#include <SDL_mouse.h>
+
#include "video/drawing_context.hpp"
#include "gui/mousecursor.hpp"
#include "main.hpp"
cursor = new Surface(cursor_file);
cur_state = MC_NORMAL;
-
- SDL_ShowCursor(SDL_DISABLE);
}
MouseCursor::~MouseCursor()
{
delete cursor;
-
- SDL_ShowCursor(SDL_ENABLE);
}
int MouseCursor::state()
}
#endif
+ SDL_ShowCursor(0);
+
double aspect_ratio = config->aspect_ratio;
// try to guess aspect ratio of monitor if needed
if (aspect_ratio <= 0) {
- if(desktop_width > 0) {
+ if(config->use_fullscreen && desktop_width > 0) {
aspect_ratio = static_cast<double>(desktop_width) / static_cast<double>(desktop_height);
} else {
aspect_ratio = 4.0 / 3.0;
#include <string>
#include <assert.h>
-#include <SDL.h>
#include "math/vector.hpp"
#include "math/rect.hpp"
class Surface;
class DrawingContext;
-class Color;
class Blend;
class Sprite
#include <vector>
#include <string>
+#include <memory>
+
#include <stdint.h>
#include <GL/gl.h>
-#include <SDL.h>
-#include <stdint.h>
-#include <memory>
+#include <SDL_video.h>
#include "obstack/obstack.h"
#include "math/vector.hpp"