/** ** generic/putscl.c ---- generic putscanline routine ** ** Copyright (c) 1998 Hartmut Schirmer ** ** This file is part of the GRX graphics library. ** ** The GRX graphics library is free software; you can redistribute it ** and/or modify it under some conditions; see the "copying.grx" file ** for details. ** ** This library 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. ** **/ void putscanline(int x,int y,int w, const GrColor *scl, GrColor op ) { GrColor skipc; GRX_ENTER(); skipc = op ^ GrIMAGE; op &= GrCMODEMASK; for ( w += x; x < w; ++x) { GrColor c = *(scl++); if (c != skipc) drawpixel(x,y,(c|op)); } GRX_LEAVE(); }