Enabling puzzle, now it should work

This commit is contained in:
Pere Pujal i Carabantes 2009-08-11 11:59:33 +00:00
parent 6637f3fba4
commit b899ef4d58

View file

@ -26,7 +26,7 @@
(See COPYING.txt)
*/
/*
#include <time.h> //for time()
#include "tp_magic_api.h"
#include "SDL_image.h"
@ -185,10 +185,11 @@ static void puzzle_draw(void * ptr, int which_tool,
rect_this.y=y;
rect_this.h=rect_this.w=puzzle_gcd;
rect_that.h=rect_that.w=puzzle_gcd;
}
SDL_BlitSurface(canvas, &rect_this, canvas, &rect_that);
SDL_BlitSurface(canvas_backup, &rect_that, canvas, &rect_this);
}
}
void puzzle_drag(magic_api * api, int which, SDL_Surface * canvas,
@ -214,4 +215,4 @@ void puzzle_click(magic_api * api, int which, int mode,
{
puzzle_drag(api, which, canvas, last, x, y, x, y, update_rect);
}
*/