X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2Finclude%2FCSurface.hpp;h=6de73055013624dee98b35f69fef0285384ffb80;hb=4d0188930e7d0e571db78d1d2e3c4d9b3f0fe8fb;hp=91b61f8c5a48aa83ac9a0d4186a2a6711eff1a88;hpb=b471bc9adca2cf2126c2b579bf0b33cedd2839a4;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp b/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp index 91b61f8c..6de73055 100644 --- a/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp +++ b/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp @@ -11,13 +11,20 @@ namespace AxWin { class CSurface { public: - CSurface(unsigned int x, unsigned int y, unsigned int w, unsigned int h); + CSurface(int x, int y, unsigned int w, unsigned int h); ~CSurface(); + + uint64_t GetSHMHandle(); + + void Resize(unsigned int new_w, unsigned int new_h); + void DrawScanline(unsigned int row, unsigned int x_ofs, unsigned int w, const void* data); const uint32_t* GetScanline(unsigned int row, unsigned int x_ofs) const; CRect m_rect; uint32_t* m_data; +private: + int m_fd; }; }; // namespace AxWin