- class GfxClippingArea : public Backup<DrawPixelInfo>
- {
- public:
- GfxClippingArea(const char * const file, const int line) : Backup<DrawPixelInfo>(_cur_dpi, file, line) {}
- bool Clip(int left, int top, int width, int height)
- {
- if (!FillDrawPixelInfo(&this->new_dpi, left, top, width, height)) return false;
- this->Change(&this->new_dpi);
- return true;
- }
- private:
- DrawPixelInfo new_dpi;
- };