2 * Copyright (c) 2001 Greg Haerr <greg@censoft.com>
4 * Portrait mode subdriver for Microwindows
13 fbportrait_drawpixel(PSD psd,MWCOORD x, MWCOORD y, MWPIXELVAL c)
15 //x = psd->xvirtres-x-1;
16 psd->orgsubdriver->DrawPixel(psd, x, psd->yvirtres-y-1, c);
20 fbportrait_readpixel(PSD psd,MWCOORD x, MWCOORD y)
22 //x = psd->xvirtres-x-1;
23 return psd->orgsubdriver->ReadPixel(psd, x, psd->yvirtres-y-1);
27 fbportrait_drawhorzline(PSD psd,MWCOORD x1, MWCOORD x2, MWCOORD y, MWPIXELVAL c)
29 //x1 = psd->xvirtres-x1-1;
30 //x2 = psd->xvirtres-x2-1;
31 psd->orgsubdriver->DrawHorzLine(psd, x1, x2, psd->yvirtres-y-1, c);
35 fbportrait_drawvertline(PSD psd,MWCOORD x, MWCOORD y1, MWCOORD y2, MWPIXELVAL c)
37 //x = psd->xvirtres-x-1;
38 psd->orgsubdriver->DrawVertLine(psd, x, psd->yvirtres-y2-1,
39 psd->yvirtres-y1-1, c);
43 fbportrait_fillrect(PSD psd,MWCOORD x1, MWCOORD y1, MWCOORD x2, MWCOORD y2,
46 y2 = psd->yvirtres-y2-1;
47 y1 = psd->yvirtres-y1-1;
48 //x1 = psd->xvirtres-x2-1;
49 //x2 = psd->xvirtres-x1-1;
51 psd->DrawHorzLine(psd, x1, x2, y2++, c);
55 fbportrait_blit(PSD dstpsd,MWCOORD destx,MWCOORD desty,MWCOORD w,MWCOORD h,
56 PSD srcpsd, MWCOORD srcx,MWCOORD srcy,long op)
58 //dstpsd->orgsubdriver->Blit(dstpsd, desty, dstpsd->xvirtres-destx-w,
59 //h, w, srcpsd, srcy, srcpsd->xvirtres-srcx-w, op);
63 fbportrait_stretchblit(PSD dstpsd, MWCOORD destx, MWCOORD desty, MWCOORD dstw,
64 MWCOORD dsth, PSD srcpsd, MWCOORD srcx, MWCOORD srcy, MWCOORD srcw,
65 MWCOORD srch, long op)
67 //dstpsd->orgsubdriver->StretchBlit(dstpsd, dstpsd->yvirtres-desty-dsth, destx,
68 //dsth, dstw, srcpsd, srcpsd->yvirtres-srcy-srch, srcx,
72 SUBDRIVER fbportrait_down = {
76 fbportrait_drawhorzline,
77 fbportrait_drawvertline,
81 fbportrait_stretchblit