#include "Draw.h" // --------------------------- Draw& ScreenInfo(); void BackDraw::Create(int cx, int cy) { DrawLock __; Create(ScreenInfo(), cx, cy); } bool BackDraw::IsPaintingOp(const Rect& r) const { Rect rr = r + GetOffset(); if(!rr.Intersects(size)) return false; return painting ? painting->IsPainting(rr + painting_offset) : true; } BackDraw::BackDraw() { painting = NULL; painting_offset = Point(0, 0); } BackDraw::~BackDraw() { Destroy(); } Draw& ScreenInfo(); bool ScreenInPaletteMode() { return ScreenInfo().PaletteMode(); } Size GetScreenSize() { return ScreenInfo().GetPagePixels(); }