]> source.dussan.org Git - tigervnc.git/commitdiff
Added ScaledDIBSectionBuffer::area() method.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 27 May 2006 12:15:55 +0000 (12:15 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 27 May 2006 12:15:55 +0000 (12:15 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@596 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/ScaledDIBSectionBuffer.h

index 3cc267b2a3a4afb9714cf4bc244cc3f7042f934a..7ec0b1f102fc8e5d36de33dd1c0a32bdfa36eebe 100644 (file)
@@ -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);