-#if 0
- p.resetClip(gRegion(eRect(0, 0, 720, 576)));
-
-
- gRegion c;
- eDebug("0");
- int i;
-
- c |= eRect(0, 20, 100, 10);
- c |= eRect(0, 50, 100, 10);
- c |= eRect(10, 10, 80, 100);
-
- c -= eRect(20, 20, 40, 40);
-
- p.setForegroundColor(gColor(3));
- p.fill(eRect(0, 0, 100, 100));
- p.fill(eRect(200, 0, 100, 100));
-
- for (int a=0; a<c.rects.size(); ++a)
- eDebug("%d %d -> %d %d", c.rects[a].left(), c.rects[a].top(), c.rects[a].right(), c.rects[a].bottom());
- eDebug("extends: %d %d %d %d", c.extends.left(), c.extends.top(), c.extends.right(), c.extends.bottom());
- p.setOffset(ePoint(100, 100));
- p.clip(c);
-
- p.setBackgroundColor(gColor(1));
- p.clear();
- p.setForegroundColor(gColor(2));
- p.line(ePoint(0, 0), ePoint(220, 190));
- p.clippop();
-
- p.setBackgroundColor(gColor(0x1f));
- p.setForegroundColor(gColor(0x10));
-
- ePtr<gFont> fnt = new gFont("Arial", 70);
- p.setFont(fnt);
- p.renderText(eRect(100, 100, 500, 200), "Hello welt!");
-#else
-
-