Enabling puzzle, now it should work
This commit is contained in:
parent
6637f3fba4
commit
b899ef4d58
1 changed files with 4 additions and 3 deletions
|
|
@ -26,7 +26,7 @@
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
#include <time.h> //for time()
|
#include <time.h> //for time()
|
||||||
#include "tp_magic_api.h"
|
#include "tp_magic_api.h"
|
||||||
#include "SDL_image.h"
|
#include "SDL_image.h"
|
||||||
|
|
@ -185,11 +185,12 @@ static void puzzle_draw(void * ptr, int which_tool,
|
||||||
rect_this.y=y;
|
rect_this.y=y;
|
||||||
rect_this.h=rect_this.w=puzzle_gcd;
|
rect_this.h=rect_this.w=puzzle_gcd;
|
||||||
rect_that.h=rect_that.w=puzzle_gcd;
|
rect_that.h=rect_that.w=puzzle_gcd;
|
||||||
}
|
|
||||||
|
|
||||||
SDL_BlitSurface(canvas, &rect_this, canvas, &rect_that);
|
SDL_BlitSurface(canvas, &rect_this, canvas, &rect_that);
|
||||||
SDL_BlitSurface(canvas_backup, &rect_that, canvas, &rect_this);
|
SDL_BlitSurface(canvas_backup, &rect_that, canvas, &rect_this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void puzzle_drag(magic_api * api, int which, SDL_Surface * canvas,
|
void puzzle_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * last, int ox, int oy, int x, int y,
|
SDL_Surface * last, int ox, int oy, int x, int y,
|
||||||
|
|
@ -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);
|
puzzle_drag(api, which, canvas, last, x, y, x, y, update_rect);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue