From c0d28b28d274450dce19a38e6c5ca4bb7a3044f0 Mon Sep 17 00:00:00 2001 From: george82 Date: Sat, 27 May 2006 12:15:55 +0000 Subject: [PATCH] Added ScaledDIBSectionBuffer::area() method. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@596 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/rfb_win32/ScaledDIBSectionBuffer.h | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5