sources/Desktop/videodisplay.cpp
// set the pixel at x,y with the specified color
set the pixel at x,y with the specified color
set the pixel at x y with the specified color
void VideoDisplay::Set( int x, int y, int color, bool delayUpdate )
{
    if( x < 0 || x > this->width ) return;
    if( y < 0 || y > this->height ) return;
    videoMemory[ (y * this->width) + x ] = color;
    if( !delayUpdate ) this->UpdateScreen();
}
void VideoDisplay :: Set ( int x , int y , int color , bool delayUpdate ) { if ( x < 0 || x > this -> width ) return ; if ( y < 0 || y > this -> height ) return ; videoMemory [ ( y * this -> width ) + x ] = color ; if ( ! delayUpdate ) this -> UpdateScreen ( ) ; }
set the pixel at x,y with the specified color
set the pixel at x y with the specified color