Discussion:
[Clanlib-devel] [PATCH] CL_Surface::Draw overload for CL_Rectf version
Seth A. Robinson
2006-01-21 06:10:15 UTC
Permalink
This simple patch against the 0.8 on svn adds an overload of draw() that
allows you to send CL_Rectf versions of the src and dest for sub-pixel
blitting accuracy.

It fixes a smooth scrolling problem I was having due to int truncation on
the dest rect.

Note: I realize it's pointless to accept src as CL_Rectf as it's still being
truncated to int, but I thought it best to do it that way for consistency
and the future. (sub-pixel src would require changing
CL_Surface_DrawParams2, and some things in the ogl surface texturing code I
believe.)

-Seth (mrfun)

Loading...