aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-09-23 07:05:16 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-09-23 07:05:16 +0000
commit70a0dc89397892d6e084dc7be030e7104fd30ce3 (patch)
tree25522f47a876430d54dbfda900d52cbef0cc6bdb
parentb2f8ae5634b3cc7f9e5aa60a621e1251258034b5 (diff)
downloadtigervnc-70a0dc89397892d6e084dc7be030e7104fd30ce3.tar.gz
tigervnc-70a0dc89397892d6e084dc7be030e7104fd30ce3.zip
Added the new methods to the ScaledDIBSectionBuffer class:
getPixelFormat() and getScaledPixelFormat(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2101 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--win/rfb_win32/ScaledDIBSectionBuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/win/rfb_win32/ScaledDIBSectionBuffer.h b/win/rfb_win32/ScaledDIBSectionBuffer.h
index 69c38481..eb1d093f 100644
--- a/win/rfb_win32/ScaledDIBSectionBuffer.h
+++ b/win/rfb_win32/ScaledDIBSectionBuffer.h
@@ -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);