src/bbcvdu.c
// Bugfix version of SDL_RenderSetClipRect (SDL Bugzilla 2700)
// n.b. writes to the rect, which is supposedly a constant!
Bugfix version of SDL_RenderSetClipRect (SDL Bugzilla 2700)
n.b. writes to the rect, which is supposedly a constant!
Bugfix version of SDL_RenderSetClipRect ( SDL Bugzilla 2700 ) n . b . writes to the rect which is supposedly a constant!
int BBC_RenderSetClipRect (SDL_Renderer* renderer, SDL_Rect* rect)
{
	int w, h, result ;
	if ((rect == NULL) || (platform >= 0x02000400))
		return SDL_RenderSetClipRect(renderer, rect) ;
	SDL_GetRendererOutputSize (renderer, &w, &h) ;
	rect->y = h - rect->y - rect->h ;
	result = SDL_RenderSetClipRect (renderer, rect) ;
	rect->y = h - rect->y - rect->h ;
	return result ;
}
int BBC_RenderSetClipRect ( SDL_Renderer * renderer , SDL_Rect * rect ) { int w , h , result ; if ( ( rect == NULL ) || ( platform >= 0x02000400 ) ) return SDL_RenderSetClipRect ( renderer , rect ) ; SDL_GetRendererOutputSize ( renderer , & w , & h ) ; rect -> y = h - rect -> y - rect -> h ; result = SDL_RenderSetClipRect ( renderer , rect ) ; rect -> y = h - rect -> y - rect -> h ; return result ; }
Bugfix version of SDL_RenderSetClipRect (SDL Bugzilla 2700)
n.b.
Bugfix version of SDL_RenderSetClipRect ( SDL Bugzilla 2700 ) n . b .