Loading

Paste #paezrhq73

  1. class GfxClippingArea : public Backup<DrawPixelInfo>
  2. {
  3. public:
  4.   GfxClippingArea(const char * const file, const int line) : Backup<DrawPixelInfo>(_cur_dpi, file, line) {}
  5.  
  6.   bool Clip(int left, int top, int width, int height)
  7.   {
  8.     if (!FillDrawPixelInfo(&this->new_dpi, left, top, width, height)) return false;
  9.     this->Change(&this->new_dpi);
  10.     return true;
  11.   }
  12.  
  13. private:
  14.   DrawPixelInfo new_dpi;
  15. };

Comments