#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "SDL.h"
#include "vector.h"
#include "draw.h"
#include "blit.h"

void blit0(byte_t* what,SDL_Surface *screen){
	SDL_LockSurface(screen);
	memcpy(screen->pixels,what,XMAX*YMAX);
	SDL_UnlockSurface(screen);
	SDL_Flip(screen);
}

void BlitSurface(SDL_Surface *bmp, byte_t* what){
	memcpy(what,bmp->pixels,XMAX*YMAX);
}
