~ubuntu-branches/ubuntu/trusty/grafx2/trusty

« back to all changes in this revision

Viewing changes to pxtall.h

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2009-09-21 14:24:19 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090921142419-lhpqq102buior0ol
Tags: 2.1-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  Grafx2 - The Ultimate 256-color bitmap paint program
2
 
 
3
 
    Copyright 2008 Yves Rizoud
4
 
    Copyright 2007 Adrien Destugues
5
 
    Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
6
 
 
7
 
    Grafx2 is free software; you can redistribute it and/or
8
 
    modify it under the terms of the GNU General Public License
9
 
    as published by the Free Software Foundation; version 2
10
 
    of the License.
11
 
 
12
 
    Grafx2 is distributed in the hope that it will be useful,
13
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
    GNU General Public License for more details.
16
 
 
17
 
    You should have received a copy of the GNU General Public License
18
 
    along with Grafx2; if not, see <http://www.gnu.org/licenses/>
19
 
*/
20
 
 
21
 
//////////////////////////////////////////////////////////////////////////////
22
 
///@file pxtall.h
23
 
/// Renderer for tall pixels (1x2).
24
 
//////////////////////////////////////////////////////////////////////////////
25
 
 
26
 
#include "struct.h"
27
 
 
28
 
  void Pixel_tall                        (word x,word y,byte color);
29
 
  byte Read_pixel_tall                    (word x,word y);
30
 
  void Block_tall                        (word start_x,word start_y,word width,word height,byte color);
31
 
  void Pixel_preview_normal_tall         (word x,word y,byte color);
32
 
  void Pixel_preview_magnifier_tall          (word x,word y,byte color);
33
 
  void Horizontal_XOR_line_tall        (word x_pos,word y_pos,word width);
34
 
  void Vertical_XOR_line_tall          (word x_pos,word y_pos,word height);
35
 
  void Display_brush_color_tall          (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
36
 
  void Display_brush_mono_tall           (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,byte color,word brush_width);
37
 
  void Clear_brush_tall                  (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word image_width);
38
 
  void Remap_screen_tall                 (word x_pos,word y_pos,word width,word height,byte * conversion_table);
39
 
  void Display_part_of_screen_tall   (word width,word height,word image_width);
40
 
  void Display_line_on_screen_tall     (word x_pos,word y_pos,word width,byte * line);
41
 
  void Read_line_screen_tall         (word x_pos,word y_pos,word width,byte * line);
42
 
  void Display_part_of_screen_scaled_tall(word width,word height,word image_width,byte * buffer);
43
 
  void Display_brush_color_zoom_tall     (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);
44
 
  void Display_brush_mono_zoom_tall      (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);
45
 
  void Clear_brush_scaled_tall             (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);
46
 
  void Display_brush_tall               (byte * brush, word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
 
1
/*  Grafx2 - The Ultimate 256-color bitmap paint program
 
2
 
 
3
    Copyright 2008 Yves Rizoud
 
4
    Copyright 2007 Adrien Destugues
 
5
    Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
 
6
 
 
7
    Grafx2 is free software; you can redistribute it and/or
 
8
    modify it under the terms of the GNU General Public License
 
9
    as published by the Free Software Foundation; version 2
 
10
    of the License.
 
11
 
 
12
    Grafx2 is distributed in the hope that it will be useful,
 
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
    GNU General Public License for more details.
 
16
 
 
17
    You should have received a copy of the GNU General Public License
 
18
    along with Grafx2; if not, see <http://www.gnu.org/licenses/>
 
19
*/
 
20
 
 
21
//////////////////////////////////////////////////////////////////////////////
 
22
///@file pxtall.h
 
23
/// Renderer for tall pixels (1x2).
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
 
 
26
#include "struct.h"
 
27
 
 
28
  void Pixel_tall                        (word x,word y,byte color);
 
29
  byte Read_pixel_tall                    (word x,word y);
 
30
  void Block_tall                        (word start_x,word start_y,word width,word height,byte color);
 
31
  void Pixel_preview_normal_tall         (word x,word y,byte color);
 
32
  void Pixel_preview_magnifier_tall          (word x,word y,byte color);
 
33
  void Horizontal_XOR_line_tall        (word x_pos,word y_pos,word width);
 
34
  void Vertical_XOR_line_tall          (word x_pos,word y_pos,word height);
 
35
  void Display_brush_color_tall          (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
 
36
  void Display_brush_mono_tall           (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,byte color,word brush_width);
 
37
  void Clear_brush_tall                  (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word image_width);
 
38
  void Remap_screen_tall                 (word x_pos,word y_pos,word width,word height,byte * conversion_table);
 
39
  void Display_part_of_screen_tall   (word width,word height,word image_width);
 
40
  void Display_line_on_screen_tall     (word x_pos,word y_pos,word width,byte * line);
 
41
  void Read_line_screen_tall         (word x_pos,word y_pos,word width,byte * line);
 
42
  void Display_part_of_screen_scaled_tall(word width,word height,word image_width,byte * buffer);
 
43
  void Display_brush_color_zoom_tall     (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);
 
44
  void Display_brush_mono_zoom_tall      (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);
 
45
  void Clear_brush_scaled_tall             (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);
 
46
  void Display_brush_tall               (byte * brush, word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);