[Scummvm-cvs-logs] SF.net SVN: scummvm:[42326] scummvm/branches/gsoc2009-16bit/common/system.h
upthorn at users.sourceforge.net
upthorn at users.sourceforge.net
Fri Jul 10 09:08:54 CEST 2009
Revision: 42326
http://scummvm.svn.sourceforge.net/scummvm/?rev=42326&view=rev
Author: upthorn
Date: 2009-07-10 07:08:54 +0000 (Fri, 10 Jul 2009)
Log Message:
-----------
removed OSystem::convertScreenRect as unnecessary and bloatful.
Modified Paths:
--------------
scummvm/branches/gsoc2009-16bit/common/system.h
Modified: scummvm/branches/gsoc2009-16bit/common/system.h
===================================================================
--- scummvm/branches/gsoc2009-16bit/common/system.h 2009-07-10 06:46:50 UTC (rev 42325)
+++ scummvm/branches/gsoc2009-16bit/common/system.h 2009-07-10 07:08:54 UTC (rev 42326)
@@ -1022,35 +1022,6 @@
*/
virtual Common::WriteStream *createConfigWriteStream() = 0;
-#ifdef ENABLE_RGB_COLOR
-private:
- /**
- * Convert a rectangle from the screen format to the hardware format.
- * Expected usage is for this to be called in copyRectToScreen when
- * conversion is necessary.
- *
- * @param dstbuf the buffer which will recieve the converted graphics data
- * @param srcbuf the buffer containing the original graphics data
- * @param dstpitch width in bytes of one full line of the dest buffer
- * @param srcpitch width in bytes of one full line of the source buffer
- * @param w the width of the graphics data
- * @param h the height of the graphics data
- * @param hwFmt the pixel format currently set in hardware
- * @return true if conversion completes successfully,
- * false if there is an error.
- *
- * @note This implementation is slow. Please override this if
- * your backend hardware has a better way to deal with this.
- * @note This implementation requires the screen pixel format and
- * the hardware pixel format to have a matching bytedepth.
- * @note This is meant for RGB modes only, do not attempt
- * to use it when running in 256 color mode.
- */
- virtual bool convertScreenRect(byte *dstbuf, const byte *srcbuf, int dstpitch, int srcpitch,
- int w, int h, Graphics::PixelFormat hwFmt) {
- return Graphics::crossBlit(dstbuf,srcbuf,dstpitch,srcpitch,w,h,hwFmt,getScreenFormat());
- };
-#endif // ENABLE_RGB_COLOR
//@}
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list