]> source.dussan.org Git - tigervnc.git/commitdiff
Added the new methods to the ScaledDIBSectionBuffer class:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 23 Sep 2006 07:05:16 +0000 (07:05 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 23 Sep 2006 07:05:16 +0000 (07:05 +0000)
getPixelFormat() and getScaledPixelFormat().

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

win/rfb_win32/ScaledDIBSectionBuffer.h

index 69c38481f80680c1a33d0cb9bc474298b8f6058f..eb1d093fabf8dbf0422dfe448d4c9e30134087de 100644 (file)
@@ -47,6 +47,8 @@ namespace rfb {
       bool isScaling() const { return scaling; }
 
       virtual void setPF(const PixelFormat &pf);
+      virtual const PixelFormat& getPixelFormat() const { return pf; }
+      virtual const PixelFormat& getScaledPixelFormat() const { return getPF(); }
       virtual void setSize(int w, int h);
       virtual void setScale(int scale) { setScaleRatio(double(scale)/100.0); };
       virtual void setScaleRatio(double scale_ratio);