From: george82 Date: Sat, 27 May 2006 12:15:55 +0000 (+0000) Subject: Added ScaledDIBSectionBuffer::area() method. X-Git-Tag: v0.0.90~384^2~276 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0d28b28d274450dce19a38e6c5ca4bb7a3044f0;p=tigervnc.git Added ScaledDIBSectionBuffer::area() method. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@596 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/rfb_win32/ScaledDIBSectionBuffer.h b/win/rfb_win32/ScaledDIBSectionBuffer.h index 3cc267b2..7ec0b1f1 100644 --- a/win/rfb_win32/ScaledDIBSectionBuffer.h +++ b/win/rfb_win32/ScaledDIBSectionBuffer.h @@ -43,6 +43,7 @@ namespace rfb { int width() const { return scaled_width; } int height() const { return scaled_height; } + int area() const { return scaled_width * scaled_height; } bool isScaling() const { return scaling; } virtual void setPF(const PixelFormat &pf);