remove commented out code
This commit is contained in:
@@ -33,35 +33,24 @@
|
||||
void Pixel_simple (word x,word y,byte color)
|
||||
/* Affiche un pixel de la color aux coords x;y à l'écran */
|
||||
{
|
||||
//*(Screen_pixels + x + y * VIDEO_LINE_WIDTH)=color;
|
||||
Set_Screen_pixel(x, y, color);
|
||||
}
|
||||
|
||||
byte Read_pixel_simple (word x,word y)
|
||||
/* On retourne la couleur du pixel aux coords données */
|
||||
{
|
||||
//return *( Screen_pixels + y * VIDEO_LINE_WIDTH + x );
|
||||
return Get_Screen_pixel(x, y);
|
||||
}
|
||||
|
||||
void Block_simple (word start_x,word start_y,word width,word height,byte color)
|
||||
/* On affiche un rectangle de la couleur donnée */
|
||||
{
|
||||
#if 0
|
||||
SDL_Rect rectangle;
|
||||
rectangle.x=start_x;
|
||||
rectangle.y=start_y;
|
||||
rectangle.w=width;
|
||||
rectangle.h=height;
|
||||
SDL_FillRect(Screen_SDL,&rectangle,color);
|
||||
#endif
|
||||
Screen_FillRect(start_x, start_y, width, height, color);
|
||||
}
|
||||
|
||||
void Display_part_of_screen_simple (word width,word height,word image_width)
|
||||
/* Afficher une partie de l'image telle quelle sur l'écran */
|
||||
{
|
||||
//On va se mettre en 0,0 dans l'écran (dest)
|
||||
byte* src=Main.offset_Y*image_width+Main.offset_X+Main_screen; //Coords de départ ds la source (src)
|
||||
word y;
|
||||
|
||||
@@ -118,7 +107,6 @@ void Pixel_preview_magnifier_simple (word x,word y,byte color)
|
||||
void Horizontal_XOR_line_simple(word x_pos,word y_pos,word width)
|
||||
{
|
||||
//On calcule la valeur initiale de dest:
|
||||
//byte* dest=y_pos*VIDEO_LINE_WIDTH+x_pos+Screen_pixels;
|
||||
byte* dest=Get_Screen_pixel_ptr(x_pos, y_pos);
|
||||
|
||||
int x;
|
||||
@@ -133,9 +121,7 @@ void Vertical_XOR_line_simple(word x_pos,word y_pos,word height)
|
||||
byte color;
|
||||
for (i=y_pos;i<y_pos+height;i++)
|
||||
{
|
||||
//color=*(Screen_pixels+x_pos+i*VIDEO_LINE_WIDTH);
|
||||
color = Get_Screen_pixel(x_pos, i);
|
||||
//*(Screen_pixels+x_pos+i*VIDEO_LINE_WIDTH)=xor_lut[color];
|
||||
Set_Screen_pixel(x_pos, i, xor_lut[color]);
|
||||
}
|
||||
}
|
||||
@@ -199,14 +185,12 @@ void Display_brush_mono_simple(word x_pos, word y_pos,
|
||||
|
||||
// On passe à la ligne suivante
|
||||
src+=brush_width-width;
|
||||
//dest+=VIDEO_LINE_WIDTH-width;
|
||||
}
|
||||
Update_rect(x_pos,y_pos,width,height);
|
||||
}
|
||||
|
||||
void Clear_brush_simple(word x_pos,word y_pos,word x_offset,word y_offset,word width,word height,byte transp_color,word image_width)
|
||||
{
|
||||
//On va se mettre en 0,0 dans l'écran (dest)
|
||||
byte* src = ( y_pos + Main.offset_Y ) * image_width + x_pos + Main.offset_X + Main_screen; //Coords de départ ds la source (src)
|
||||
int y;
|
||||
(void)x_offset; // unused
|
||||
@@ -222,7 +206,6 @@ void Clear_brush_simple(word x_pos,word y_pos,word x_offset,word y_offset,word w
|
||||
|
||||
// On passe à la ligne suivante
|
||||
src+=image_width;
|
||||
//dest+=VIDEO_LINE_WIDTH;
|
||||
}
|
||||
Update_rect(x_pos,y_pos,width,height);
|
||||
}
|
||||
@@ -273,8 +256,6 @@ void Remap_screen_simple(word x_pos,word y_pos,word width,word height,byte * con
|
||||
*dest = conversion_table[*dest];
|
||||
dest ++;
|
||||
}
|
||||
|
||||
//dest = dest + VIDEO_LINE_WIDTH - width;
|
||||
}
|
||||
|
||||
Update_rect(x_pos,y_pos,width,height);
|
||||
@@ -285,7 +266,6 @@ void Display_line_on_screen_simple(word x_pos,word y_pos,word width,byte * line)
|
||||
{
|
||||
byte* dest = Get_Screen_pixel_ptr(x_pos, y_pos);
|
||||
memcpy(dest, line, width);
|
||||
//memcpy(Screen_pixels+x_pos+y_pos*VIDEO_LINE_WIDTH,line,width);
|
||||
}
|
||||
|
||||
void Display_transparent_mono_line_on_screen_simple(
|
||||
@@ -294,7 +274,6 @@ void Display_transparent_mono_line_on_screen_simple(
|
||||
// Affiche une ligne à l'écran avec une couleur + transparence.
|
||||
// Utilisé par les brosses en mode zoom
|
||||
{
|
||||
//byte* dest = Screen_pixels+ y_pos * VIDEO_LINE_WIDTH + x_pos;
|
||||
byte* dest = Get_Screen_pixel_ptr(x_pos, y_pos);
|
||||
int x;
|
||||
// Pour chaque pixel
|
||||
@@ -358,7 +337,6 @@ void Display_part_of_screen_scaled_simple(
|
||||
void Display_transparent_line_on_screen_simple(word x_pos,word y_pos,word width,byte* line,byte transp_color)
|
||||
{
|
||||
byte* src = line;
|
||||
//byte* dest = Screen_pixels + y_pos * VIDEO_LINE_WIDTH + x_pos;
|
||||
byte* dest = Get_Screen_pixel_ptr(x_pos, y_pos);
|
||||
|
||||
word x;
|
||||
|
||||
Reference in New Issue
Block a user