components/prboom/v_video.c
//
// V_FillRect
//
// CPhipps - New function to fill a rectangle with a given colour
V_FillRect
CPhipps - New function to fill a rectangle with a given colour
V_FillRect CPhipps - New function to fill a rectangle with a given colour
static void V_FillRect8(int scrn, int x, int y, int width, int height, byte colour)
{
  byte* dest = screens[scrn].data + x + y*screens[scrn].byte_pitch;
  while (height--) {
    memset(dest, colour, width);
    dest += screens[scrn].byte_pitch;
  }
}
static void V_FillRect8 ( int scrn , int x , int y , int width , int height , byte colour ) { byte * dest = screens [ scrn ] . data + x + y * screens [ scrn ] . byte_pitch ; while ( height -- ) { memset ( dest , colour , width ) ; dest += screens [ scrn ] . byte_pitch ; } }
V_FillRect
CPhipps - New function to fill a rectangle with a given colour
V_FillRect CPhipps - New function to fill a rectangle with a given colour