src/bbcvdu.c
// Get RGB colour at specified graphics coordinates
Get RGB colour at specified graphics coordinates
Get RGB colour at specified graphics coordinates
int vtint_ (int x, int y)
{
	int l, r, t, b, p ;
	SDL_Rect rect ;
	ascale (&x, &y) ;
	grawin (&l, &r, &t, &b) ;
	if ((x < l) || (x >= r) || (y < t) || (y >= b))
		return -1 ;
	rect.x = x ;
	rect.y = y ;
	rect.w = 1 ;
	rect.h = 1 ;
	BBC_RenderReadPixels (memhdc, &rect, SDL_PIXELFORMAT_ABGR8888, &p, 4) ;
	return (p & 0xFFFFFF) ;
}
int vtint_ ( int x , int y ) { int l , r , t , b , p ; SDL_Rect rect ; ascale ( & x , & y ) ; grawin ( & l , & r , & t , & b ) ; if ( ( x < l ) || ( x >= r ) || ( y < t ) || ( y >= b ) ) return -1 ; rect . x = x ; rect . y = y ; rect . w = 1 ; rect . h = 1 ; BBC_RenderReadPixels ( memhdc , & rect , SDL_PIXELFORMAT_ABGR8888 , & p , 4 ) ; return ( p & 0xFFFFFF ) ; }
Get RGB colour at specified graphics coordinates
Get RGB colour at specified graphics coordinates