]> source.dussan.org Git - tigervnc.git/commitdiff
Added the new property scaling to the rfb::ScaledPixelBuffer class.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 5 Apr 2006 15:52:30 +0000 (15:52 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 5 Apr 2006 15:52:30 +0000 (15:52 +0000)
Added the new method isScaling() to the rfb::ScaledPixelBuffer class.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@515 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfb_win32/ScaledDIBSectionBuffer.h

index c256e8fa5d610b001d139469b6ce592304fec307..c0dd5868b8c11eda430cd625e30b61286429f8ad 100644 (file)
@@ -43,6 +43,7 @@ namespace rfb {
 
       int width()  const { return scaled_width; }
       int height() const { return scaled_height; }
+      bool isScaling() const { return scaling; }
 
       virtual void setSrcPixelBuffer(U8 **src_data, int w, int h, PixelFormat pf=PixelFormat());
       virtual void setPF(const PixelFormat &pf);
@@ -53,6 +54,8 @@ namespace rfb {
       virtual void recreateBuffer() {
         recreateScaledBuffer();
       };
+
+      bool scaling;
     };
 
   };