convert graphics visual tests reference images to png
this just makes it a lot easier to open up in whatever graphics tool is available during development
|
@ -76,8 +76,8 @@ fn pixel_addressing() {
|
|||
}
|
||||
}
|
||||
|
||||
let path = reference_file(Path::new("pixel_addressing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("pixel_addressing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -128,8 +128,8 @@ fn pixel_drawing() {
|
|||
screen.set_pixel(160, i + 234, 15);
|
||||
}
|
||||
|
||||
let path = reference_file(Path::new("pixel_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("pixel_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -153,8 +153,8 @@ fn blended_pixel_drawing() {
|
|||
screen.set_blended_pixel(160, i + 234, 15, &blend_map);
|
||||
}
|
||||
|
||||
let path = reference_file(Path::new("blended_pixel_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_pixel_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -174,8 +174,8 @@ fn horiz_line_drawing() {
|
|||
screen.horiz_line(100, 200, -10, 6);
|
||||
screen.horiz_line(20, 80, 250, 7);
|
||||
|
||||
let path = reference_file(Path::new("horiz_line_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("horiz_line_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -194,8 +194,8 @@ fn blended_horiz_line_drawing() {
|
|||
screen.blended_horiz_line(100, 200, -10, 6, &blend_map);
|
||||
screen.blended_horiz_line(20, 80, 250, 7, &blend_map);
|
||||
|
||||
let path = reference_file(Path::new("blended_horiz_line_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_horiz_line_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -214,8 +214,8 @@ fn vert_line_drawing() {
|
|||
screen.vert_line(-17, 10, 20, 6);
|
||||
screen.vert_line(400, 100, 300, 7);
|
||||
|
||||
let path = reference_file(Path::new("vert_line_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("vert_line_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -234,8 +234,8 @@ fn blended_vert_line_drawing() {
|
|||
screen.blended_vert_line(-17, 10, 20, 6, &blend_map);
|
||||
screen.blended_vert_line(400, 100, 300, 7, &blend_map);
|
||||
|
||||
let path = reference_file(Path::new("blended_vert_line_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_vert_line_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -271,8 +271,8 @@ fn line_drawing() {
|
|||
screen.line(-100, 120, -100, 239, 3);
|
||||
screen.line(320, 99, 320, 199, 5);
|
||||
|
||||
let path = reference_file(Path::new("line_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("line_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -308,8 +308,8 @@ fn blended_line_drawing() {
|
|||
screen.blended_line(-100, 120, -100, 239, 3, &blend_map);
|
||||
screen.blended_line(320, 99, 320, 199, 5, &blend_map);
|
||||
|
||||
let path = reference_file(Path::new("blended_line_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_line_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -336,8 +336,8 @@ fn rect_drawing() {
|
|||
screen.rect(300, 20, 340, -20, 13);
|
||||
screen.rect(20, 220, -20, 260, 14);
|
||||
|
||||
let path = reference_file(Path::new("rect_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("rect_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -364,8 +364,8 @@ fn blended_rect_drawing() {
|
|||
screen.blended_rect(300, 20, 340, -20, 13, &blend_map);
|
||||
screen.blended_rect(20, 220, -20, 260, 14, &blend_map);
|
||||
|
||||
let path = reference_file(Path::new("blended_rect_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_rect_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -392,8 +392,8 @@ fn filled_rect_drawing() {
|
|||
screen.filled_rect(300, 20, 340, -20, 13);
|
||||
screen.filled_rect(20, 220, -20, 260, 14);
|
||||
|
||||
let path = reference_file(Path::new("filled_rect_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("filled_rect_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -420,8 +420,8 @@ fn blended_filled_rect_drawing() {
|
|||
screen.blended_filled_rect(300, 20, 340, -20, 13, &blend_map);
|
||||
screen.blended_filled_rect(20, 220, -20, 260, 14, &blend_map);
|
||||
|
||||
let path = reference_file(Path::new("blended_filled_rect_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_filled_rect_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -443,8 +443,8 @@ fn circle_drawing() {
|
|||
screen.circle(319, 1, 22, 9);
|
||||
screen.circle(2, 242, 19, 10);
|
||||
|
||||
let path = reference_file(Path::new("circle_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("circle_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -466,8 +466,8 @@ fn filled_circle_drawing() {
|
|||
screen.filled_circle(319, 1, 22, 9);
|
||||
screen.filled_circle(2, 242, 19, 10);
|
||||
|
||||
let path = reference_file(Path::new("filled_circle_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("filled_circle_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -517,8 +517,8 @@ fn text_drawing() {
|
|||
screen.print_string(message, 360, 120, FontRenderOpts::Color(7), &font);
|
||||
screen.print_string(message, 200, 250, FontRenderOpts::Color(8), &font);
|
||||
|
||||
let path = reference_file(Path::new("text_drawing.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("text_drawing.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -600,8 +600,8 @@ fn solid_blits() {
|
|||
screen.blit(Solid, &bmp16, 196, 238);
|
||||
screen.blit(Solid, &bmp16, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("solid_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("solid_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -667,8 +667,8 @@ fn blended_solid_blits() {
|
|||
screen.blit(SolidBlended { blend_map: blend_map.clone() }, &bmp16, 196, 238);
|
||||
screen.blit(SolidBlended { blend_map: blend_map.clone() }, &bmp16, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("blended_solid_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_solid_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -731,8 +731,8 @@ fn solid_flipped_blits() {
|
|||
screen.blit(SolidFlipped { horizontal_flip: true, vertical_flip: false }, &bmp, 196, 238);
|
||||
screen.blit(SolidFlipped { horizontal_flip: false, vertical_flip: true }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("solid_flipped_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("solid_flipped_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -795,8 +795,8 @@ fn blended_solid_flipped_blits() {
|
|||
screen.blit(SolidFlippedBlended { horizontal_flip: true, vertical_flip: false, blend_map: blend_map.clone() }, &bmp, 196, 238);
|
||||
screen.blit(SolidFlippedBlended { horizontal_flip: false, vertical_flip: true, blend_map: blend_map.clone() }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("blended_solid_flipped_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_solid_flipped_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -859,8 +859,8 @@ fn solid_offset_blits() {
|
|||
screen.blit(SolidOffset(22), &bmp, 196, 238);
|
||||
screen.blit(SolidOffset(22), &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("solid_offset_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("solid_offset_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -923,8 +923,8 @@ fn solid_flipped_offset_blits() {
|
|||
screen.blit(SolidFlippedOffset { offset: 22, horizontal_flip: true, vertical_flip: false }, &bmp, 196, 238);
|
||||
screen.blit(SolidFlippedOffset { offset: 22, horizontal_flip: false, vertical_flip: true }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("solid_flipped_offset_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("solid_flipped_offset_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -990,8 +990,8 @@ fn transparent_blits() {
|
|||
screen.blit(Transparent(0), &bmp16, 196, 238);
|
||||
screen.blit(Transparent(0), &bmp16, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("transparent_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("transparent_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1057,8 +1057,8 @@ fn blended_transparent_blits() {
|
|||
screen.blit(TransparentBlended { transparent_color: 0, blend_map: blend_map.clone() }, &bmp16, 196, 238);
|
||||
screen.blit(TransparentBlended { transparent_color: 0, blend_map: blend_map.clone() }, &bmp16, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("blended_transparent_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_transparent_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1121,8 +1121,8 @@ fn transparent_flipped_blits() {
|
|||
screen.blit(TransparentFlipped { transparent_color: 0, horizontal_flip: true, vertical_flip: false }, &bmp, 196, 238);
|
||||
screen.blit(TransparentFlipped { transparent_color: 0, horizontal_flip: false, vertical_flip: true }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("transparent_flipped_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("transparent_flipped_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1185,8 +1185,8 @@ fn blended_transparent_flipped_blits() {
|
|||
screen.blit(TransparentFlippedBlended { transparent_color: 0, horizontal_flip: true, vertical_flip: false, blend_map: blend_map.clone() }, &bmp, 196, 238);
|
||||
screen.blit(TransparentFlippedBlended { transparent_color: 0, horizontal_flip: false, vertical_flip: true, blend_map: blend_map.clone() }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("blended_transparent_flipped_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_transparent_flipped_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1249,8 +1249,8 @@ fn transparent_offset_blits() {
|
|||
screen.blit(TransparentOffset { transparent_color: 0, offset: 22 }, &bmp, 196, 238);
|
||||
screen.blit(TransparentOffset { transparent_color: 0, offset: 22 }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("transparent_offset_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("transparent_offset_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1313,8 +1313,8 @@ fn transparent_flipped_offset_blits() {
|
|||
screen.blit(TransparentFlippedOffset { transparent_color: 0, offset: 22, horizontal_flip: true, vertical_flip: false }, &bmp, 196, 238);
|
||||
screen.blit(TransparentFlippedOffset { transparent_color: 0, offset: 22, horizontal_flip: false, vertical_flip: true }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("transparent_flipped_offset_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("transparent_flipped_offset_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1377,8 +1377,8 @@ fn transparent_single_blits() {
|
|||
screen.blit(TransparentSingle { transparent_color: 0, draw_color: 22 }, &bmp, 196, 238);
|
||||
screen.blit(TransparentSingle { transparent_color: 0, draw_color: 22 }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("transparent_single_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("transparent_single_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1441,8 +1441,8 @@ fn transparent_flipped_single_blits() {
|
|||
screen.blit(TransparentFlippedSingle { transparent_color: 0, draw_color: 22, horizontal_flip: true, vertical_flip: false }, &bmp, 196, 238);
|
||||
screen.blit(TransparentFlippedSingle { transparent_color: 0, draw_color: 22, horizontal_flip: false, vertical_flip: true }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("transparent_flipped_single_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("transparent_flipped_single_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1505,8 +1505,8 @@ fn rotozoom_blits() {
|
|||
screen.blit(RotoZoom { angle: 1.3, scale_x: 1.0, scale_y: 1.0 }, &bmp, 196, 238);
|
||||
screen.blit(RotoZoom { angle: 1.3, scale_x: 1.0, scale_y: 1.0 }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("rotozoom_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("rotozoom_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1569,8 +1569,8 @@ fn blended_rotozoom_blits() {
|
|||
screen.blit(RotoZoomBlended { angle: 1.3, scale_x: 1.0, scale_y: 1.0, blend_map: blend_map.clone() }, &bmp, 196, 238);
|
||||
screen.blit(RotoZoomBlended { angle: 1.3, scale_x: 1.0, scale_y: 1.0, blend_map: blend_map.clone() }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("blended_rotozoom_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_rotozoom_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1633,8 +1633,8 @@ fn rotozoom_offset_blits() {
|
|||
screen.blit(RotoZoomOffset { angle: 1.3, scale_x: 1.0, scale_y: 1.0, offset: 22 }, &bmp, 196, 238);
|
||||
screen.blit(RotoZoomOffset { angle: 1.3, scale_x: 1.0, scale_y: 1.0, offset: 22 }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("rotozoom_offset_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("rotozoom_offset_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1697,8 +1697,8 @@ fn rotozoom_transparent_blits() {
|
|||
screen.blit(RotoZoomTransparent { transparent_color: 0, angle: 1.3, scale_x: 1.0, scale_y: 1.0 }, &bmp, 196, 238);
|
||||
screen.blit(RotoZoomTransparent { transparent_color: 0, angle: 1.3, scale_x: 1.0, scale_y: 1.0 }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("rotozoom_transparent_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("rotozoom_transparent_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1761,8 +1761,8 @@ fn blended_rotozoom_transparent_blits() {
|
|||
screen.blit(RotoZoomTransparentBlended { transparent_color: 0, angle: 1.3, scale_x: 1.0, scale_y: 1.0, blend_map: blend_map.clone() }, &bmp, 196, 238);
|
||||
screen.blit(RotoZoomTransparentBlended { transparent_color: 0, angle: 1.3, scale_x: 1.0, scale_y: 1.0, blend_map: blend_map.clone() }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("blended_rotozoom_transparent_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("blended_rotozoom_transparent_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
@ -1825,8 +1825,8 @@ fn rotozoom_transparent_offset_blits() {
|
|||
screen.blit(RotoZoomTransparentOffset { transparent_color: 0, offset: 22, angle: 1.3, scale_x: 1.0, scale_y: 1.0 }, &bmp, 196, 238);
|
||||
screen.blit(RotoZoomTransparentOffset { transparent_color: 0, offset: 22, angle: 1.3, scale_x: 1.0, scale_y: 1.0 }, &bmp, 226, 240);
|
||||
|
||||
let path = reference_file(Path::new("rotozoom_transparent_offset_blits.pcx"));
|
||||
//screen.to_pcx_file(path.as_path(), &palette).unwrap();
|
||||
let path = reference_file(Path::new("rotozoom_transparent_offset_blits.png"));
|
||||
//screen.to_png_file(path.as_path(), &palette).unwrap();
|
||||
assert!(verify_visual(&screen, &palette, &path), "bitmap differs from source image: {:?}", path);
|
||||
}
|
||||
|
||||
|
|
BIN
ggdt/tests/ref/indexed/blended_filled_rect_drawing.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ggdt/tests/ref/indexed/blended_horiz_line_drawing.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
ggdt/tests/ref/indexed/blended_line_drawing.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
ggdt/tests/ref/indexed/blended_pixel_drawing.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ggdt/tests/ref/indexed/blended_rect_drawing.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
ggdt/tests/ref/indexed/blended_rotozoom_blits.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
ggdt/tests/ref/indexed/blended_rotozoom_transparent_blits.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
ggdt/tests/ref/indexed/blended_solid_blits.png
Normal file
After Width: | Height: | Size: 4 KiB |
BIN
ggdt/tests/ref/indexed/blended_solid_flipped_blits.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
ggdt/tests/ref/indexed/blended_transparent_blits.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
ggdt/tests/ref/indexed/blended_transparent_flipped_blits.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
ggdt/tests/ref/indexed/blended_vert_line_drawing.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ggdt/tests/ref/indexed/circle_drawing.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ggdt/tests/ref/indexed/filled_circle_drawing.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ggdt/tests/ref/indexed/filled_rect_drawing.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
ggdt/tests/ref/indexed/horiz_line_drawing.png
Normal file
After Width: | Height: | Size: 952 B |
BIN
ggdt/tests/ref/indexed/line_drawing.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
ggdt/tests/ref/indexed/pixel_addressing.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
ggdt/tests/ref/indexed/pixel_drawing.png
Normal file
After Width: | Height: | Size: 998 B |
BIN
ggdt/tests/ref/indexed/rect_drawing.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
ggdt/tests/ref/indexed/rotozoom_blits.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ggdt/tests/ref/indexed/rotozoom_offset_blits.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
ggdt/tests/ref/indexed/rotozoom_transparent_blits.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ggdt/tests/ref/indexed/rotozoom_transparent_offset_blits.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
ggdt/tests/ref/indexed/solid_blits.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ggdt/tests/ref/indexed/solid_flipped_blits.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ggdt/tests/ref/indexed/solid_flipped_offset_blits.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
ggdt/tests/ref/indexed/solid_offset_blits.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ggdt/tests/ref/indexed/text_drawing.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
ggdt/tests/ref/indexed/transparent_blits.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ggdt/tests/ref/indexed/transparent_flipped_blits.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ggdt/tests/ref/indexed/transparent_flipped_offset_blits.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
ggdt/tests/ref/indexed/transparent_flipped_single_blits.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
ggdt/tests/ref/indexed/transparent_offset_blits.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
ggdt/tests/ref/indexed/transparent_single_blits.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
ggdt/tests/ref/indexed/vert_line_drawing.png
Normal file
After Width: | Height: | Size: 1.3 KiB |