shootgun debug session #539
This commit is contained in:
@@ -62,6 +62,23 @@ for ( x=0; x<y; ) {
|
||||
return FUNC_NOT_FINISH;
|
||||
}
|
||||
/*::------------------------------------------------------------------::*/
|
||||
/* New Mon 19 Dec 2022 12:56:44 PM CET */
|
||||
int Image_H_line(Image_Desc *i, int xa, int xb, int ypos, RGBA *col)
|
||||
{
|
||||
int ix;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( %d %d %d %p )\n", __func__, xa, xb, ypos, col);
|
||||
#endif
|
||||
|
||||
if (xa > xb) { ix=xa, xa=xb, xb=ix; }
|
||||
|
||||
for (ix=xa; ix<xb; ix++) {
|
||||
Image_plotRGB(i, ix, ypos, col->r, col->g, col->b);
|
||||
}
|
||||
return FUNC_IS_ALPHA;
|
||||
}
|
||||
/*::------------------------------------------------------------------::*/
|
||||
/*
|
||||
* l'appel a la fonction isign devrait disparaitre pour optimiser
|
||||
* la vitesse du bouzin.
|
||||
@@ -158,7 +175,6 @@ return 0;
|
||||
###
|
||||
### THERE IS A OFF-BY-ONE IN THIS FUNCTION !
|
||||
###
|
||||
|
||||
*/
|
||||
int Image_draw_rect(Image_Desc *img, Image_Rect *rect, int r, int g, int b)
|
||||
{
|
||||
@@ -223,4 +239,3 @@ return FUNC_IS_BETA;
|
||||
/*
|
||||
* kikoo lol a tous les goret-codeurs, et en particulier Mr Spleyt.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user