From: Thadeu Lima de Souza Cascardo Date: Fri, 15 Aug 2008 21:08:44 +0000 (-0300) Subject: Change scale to four, since the new picture requires it X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fmovie.git;a=commitdiff_plain;h=refs%2Fheads%2Fold Change scale to four, since the new picture requires it --- diff --git a/movie.c b/movie.c index a8df545..22a9f92 100644 --- a/movie.c +++ b/movie.c @@ -166,7 +166,7 @@ CairoTarget (SDL_Surface *image) surface = cairo_image_surface_create_for_data (data, CAIRO_FORMAT_ARGB32, WIDTH, HEIGHT, WIDTH * 4); ctx = cairo_create (surface); - cairo_scale (ctx, 2, 2); + cairo_scale (ctx, 4, 4); } source = CairoFromSDL (image); cairo_set_source_surface (ctx, source, 0, 0); @@ -185,13 +185,13 @@ GetNextImage (SDL_Surface *image) SDL_Rect box; SDL_Color Yellow = { 255, 255, 0, 0}; center = GetNextPoint (); - slice = SDL_CreateRGBSurface (SDL_SWSURFACE, WIDTH/2, HEIGHT/2, + slice = SDL_CreateRGBSurface (SDL_SWSURFACE, WIDTH/4, HEIGHT/4, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000); - center.x -= (WIDTH/2) / 2; - center.y -= (HEIGHT/2) / 2; - center.w /= 2; - center.h /= 2; + center.x -= (WIDTH/2) / 4; + center.y -= (HEIGHT/2) / 4; + center.w /= 4; + center.h /= 4; SDL_BlitSurface (image, ¢er, slice, NULL); SDL_UpdateRect (slice, 0, 0, 0, 0); scale = CairoTarget (slice); @@ -221,7 +221,6 @@ main (int argc, char **argv) SDL_Surface *screen; SDL_Surface *image; SDL_Surface *slice; - SDL_Event event; Uint32 now, last; int i; ReadPoints ("pro-gnu");