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);
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);
SDL_Surface *screen;
SDL_Surface *image;
SDL_Surface *slice;
- SDL_Event event;
Uint32 now, last;
int i;
ReadPoints ("pro-gnu");