1
/* vim:expandtab:ts=2 sw=2:
3
/* Grafx2 - The Ultimate 256-color bitmap paint program
5
Copyright 2008 Yves Rizoud
6
Copyright 2007 Adrien Destugues
7
Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
9
Grafx2 is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; version 2
14
Grafx2 is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with Grafx2; if not, see <http://www.gnu.org/licenses/>
23
//////////////////////////////////////////////////////////////////////////////
25
/// Renderer for double pixels (2x2).
26
//////////////////////////////////////////////////////////////////////////////
30
void Pixel_double (word x,word y,byte color);
31
byte Read_pixel_double (word x,word y);
32
void Block_double (word start_x,word start_y,word width,word height,byte color);
33
void Pixel_preview_normal_double (word x,word y,byte color);
34
void Pixel_preview_magnifier_double (word x,word y,byte color);
35
void Horizontal_XOR_line_double (word x_pos,word y_pos,word width);
36
void Vertical_XOR_line_double (word x_pos,word y_pos,word height);
37
void Display_brush_color_double (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
38
void Display_brush_mono_double (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,byte color,word brush_width);
39
void Clear_brush_double (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word image_width);
40
void Remap_screen_double (word x_pos,word y_pos,word width,word height,byte * conversion_table);
41
void Display_part_of_screen_double (word width,word height,word image_width);
42
void Display_line_on_screen_double (word x_pos,word y_pos,word width,byte * line);
43
void Read_line_screen_double (word x_pos,word y_pos,word width,byte * line);
44
void Display_part_of_screen_scaled_double(word width,word height,word image_width,byte * buffer);
45
void Display_brush_color_zoom_double (word x_pos,word y_pos,word x_offset,word y_offset,word width,word end_y_pos,byte transp_color,word brush_width,byte * buffer);
46
void Display_brush_mono_zoom_double (word x_pos,word y_pos,word x_offset,word y_offset,word width,word end_y_pos,byte transp_color,byte color,word brush_width,byte * buffer);
47
void Clear_brush_scaled_double (word x_pos,word y_pos,word x_offset,word y_offset,word width,word end_y_pos,byte transp_color,word image_width,byte * buffer);
48
void Display_brush_double (byte * brush, word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
50
void Display_line_on_screen_fast_double (word x_pos,word y_pos,word width,byte * line);