summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-08-26 09:53:15 (GMT)
committer Simon <simon@hardwired.org.uk>2010-08-26 09:53:15 (GMT)
commit5751fea35f31640fddfaea1459503e366ae39729 (patch)
treead4180fdfba2b0600ac61b919f3ed3f5486dab8e /graphics.c
parent470519c92ed917b41c6ccae2e193eb59bdfe2ece (diff)
downloadpowder-5751fea35f31640fddfaea1459503e366ae39729.zip
powder-5751fea35f31640fddfaea1459503e366ae39729.tar.gz
More work
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics.c b/graphics.c
index 4282e5c..5874116 100644
--- a/graphics.c
+++ b/graphics.c
@@ -3,8 +3,14 @@
#include "powder.h"
#include "graphics.h"
#include "font.h"
+#include "utils.h"
+#include <math.h>
#include <SDL/SDL.h>
+unsigned cmode = 3;
+SDL_Surface *sdl_scrn;
+int sdl_scale = 1;
+
pixel *rescale_img(pixel *src, int sw, int sh, int *qw, int *qh, int f)
{
int i,j,x,y,w,h,r,g,b,c;