Pixels with 3:4 aspect ratio. Why not? Contributed by Nic Soudée (zoner/xylem). Thanks! git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
		
			
				
	
	
		
			51 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* vim:expandtab:ts=2 sw=2:
 | 
						|
*/
 | 
						|
/*  Grafx2 - The Ultimate 256-color bitmap paint program
 | 
						|
 | 
						|
    Copyright 2008 Yves Rizoud
 | 
						|
    Copyright 2007 Adrien Destugues
 | 
						|
    Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
 | 
						|
 | 
						|
    Grafx2 is free software; you can redistribute it and/or
 | 
						|
    modify it under the terms of the GNU General Public License
 | 
						|
    as published by the Free Software Foundation; version 2
 | 
						|
    of the License.
 | 
						|
 | 
						|
    Grafx2 is distributed in the hope that it will be useful,
 | 
						|
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
    GNU General Public License for more details.
 | 
						|
 | 
						|
    You should have received a copy of the GNU General Public License
 | 
						|
    along with Grafx2; if not, see <http://www.gnu.org/licenses/>
 | 
						|
*/
 | 
						|
 | 
						|
//////////////////////////////////////////////////////////////////////////////
 | 
						|
///@file pxtall3.h
 | 
						|
/// Renderer for 3/4 tall pixels (3x4).
 | 
						|
//////////////////////////////////////////////////////////////////////////////
 | 
						|
 | 
						|
#include "struct.h"
 | 
						|
 | 
						|
  void Pixel_tall3                      (word x,word y,byte color);
 | 
						|
  byte Read_pixel_tall3                  (word x,word y);
 | 
						|
  void Block_tall3                      (word start_x,word start_y,word width,word height,byte color);
 | 
						|
  void Pixel_preview_normal_tall3       (word x,word y,byte color);
 | 
						|
  void Pixel_preview_magnifier_tall3        (word x,word y,byte color);
 | 
						|
  void Horizontal_XOR_line_tall3      (word x_pos,word y_pos,word width);
 | 
						|
  void Vertical_XOR_line_tall3        (word x_pos,word y_pos,word height);
 | 
						|
  void Display_brush_color_tall3        (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
 | 
						|
  void Display_brush_mono_tall3         (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,byte color,word brush_width);
 | 
						|
  void Clear_brush_tall3                (word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word image_width);
 | 
						|
  void Remap_screen_tall3               (word x_pos,word y_pos,word width,word height,byte * conversion_table);
 | 
						|
  void Display_part_of_screen_tall3 (word width,word height,word image_width);
 | 
						|
  void Display_line_on_screen_tall3   (word x_pos,word y_pos,word width,byte * line);
 | 
						|
  void Read_line_screen_tall3       (word x_pos,word y_pos,word width,byte * line);
 | 
						|
  void Display_part_of_screen_scaled_tall3(word width,word height,word image_width,byte * buffer);
 | 
						|
  void Display_brush_color_zoom_tall3   (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);
 | 
						|
  void Display_brush_mono_zoom_tall3    (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);
 | 
						|
  void Clear_brush_scaled_tall3           (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);
 | 
						|
  void Display_brush_tall3             (byte * brush, word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word brush_width);
 | 
						|
 | 
						|
  void Display_line_on_screen_fast_tall3   (word x_pos,word y_pos,word width,byte * line);
 |