aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2005-11-08 22:28:31 +0000
committerMax Horn2005-11-08 22:28:31 +0000
commiteef4e5caec08f8f25d3c7a7dfe81449b841c0168 (patch)
tree69ce0b78cda0d5dfda08daad27e916cdfc012d44 /common
parent3cc22c638c12e2a0b49a841948468e37733e4817 (diff)
downloadscummvm-rg350-eef4e5caec08f8f25d3c7a7dfe81449b841c0168.tar.gz
scummvm-rg350-eef4e5caec08f8f25d3c7a7dfe81449b841c0168.tar.bz2
scummvm-rg350-eef4e5caec08f8f25d3c7a7dfe81449b841c0168.zip
Augmented OSystem docs
svn-id: r19522
Diffstat (limited to 'common')
-rw-r--r--common/system.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/system.h b/common/system.h
index 3b7e031b28..d80cd58695 100644
--- a/common/system.h
+++ b/common/system.h
@@ -384,6 +384,21 @@ public:
* Client code has to to call updateScreen to ensure any changes are
* visible to the user. This can be used to optimize drawing and reduce
* flicker.
+ * The graphics data uses 8 bits per pixel, using the palette specified
+ * via setPalette.
+ *
+ * @param buf the buffer containing the graphics data source
+ * @param pitch the pitch of the buffer (number of bytes in a scanline)
+ * @param x the x coordinate of the destination rectangle
+ * @param y the y coordinate of the destination rectangle
+ * @param w the width of the destination rectangle
+ * @param h the height of the destination rectangle
+ *
+ * @note The specified destination rectangle must be completly contained
+ * in the visible screen space, and must be non-empty. If not, a
+ * backend may or may not perform clipping, trigger an assert or
+ * silently corrupt memory.
+ *
* @see updateScreen
*/
virtual void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h) = 0;