aboutsummaryrefslogtreecommitdiff
path: root/graphics/conversion.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-07-14 05:35:20 +0200
committerJohannes Schickel2012-08-28 02:27:48 +0200
commita92a509ac844fdad796748848d1143b27547173f (patch)
tree6f467d1cf704cc08f401414fce177addb30ec352 /graphics/conversion.h
parent0d78d46a0e82af81681727a94e01ff5f309887fa (diff)
downloadscummvm-rg350-a92a509ac844fdad796748848d1143b27547173f.tar.gz
scummvm-rg350-a92a509ac844fdad796748848d1143b27547173f.tar.bz2
scummvm-rg350-a92a509ac844fdad796748848d1143b27547173f.zip
GRAPHICS: Allow in-place conversion with any color formats in crossBlit.
Diffstat (limited to 'graphics/conversion.h')
-rw-r--r--graphics/conversion.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/conversion.h b/graphics/conversion.h
index 0dce3cf279..28e64a94fb 100644
--- a/graphics/conversion.h
+++ b/graphics/conversion.h
@@ -60,9 +60,12 @@ inline static void RGB2YUV(byte r, byte g, byte b, byte &y, byte &u, byte &v) {
* false if there is an error.
*
* @note Blitting to a 3Bpp destination is not supported
- * @note This can convert a rectangle in place, if the source and
- * destination format have the same bytedepth.
- *
+ * @note This can convert a surface in place, regardless of the
+ * source and destination format, as long as there is enough
+ * space for the destination. The dstPitch / srcPitch ratio
+ * must at least equal the dstBpp / srcBpp ratio for
+ * dstPitch >= srcPitch and at most dstBpp / srcBpp for
+ * dstPitch < srcPitch though.
*/
bool crossBlit(byte *dst, const byte *src,
const uint dstPitch, const uint srcPitch,