diff options
| author | Simon <simon@hardwired.org.uk> | 2010-08-26 09:53:15 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-08-26 09:53:15 (GMT) |
| commit | 5751fea35f31640fddfaea1459503e366ae39729 (patch) | |
| tree | ad4180fdfba2b0600ac61b919f3ed3f5486dab8e /graphics.c | |
| parent | 470519c92ed917b41c6ccae2e193eb59bdfe2ece (diff) | |
| download | powder-5751fea35f31640fddfaea1459503e366ae39729.zip powder-5751fea35f31640fddfaea1459503e366ae39729.tar.gz | |
More work
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
