Lines Matching refs:wy

347 void DEMOiFillRect(int x, int y, int wx, int wy, GXRgb color)  in DEMOiFillRect()  argument
355 if (wy > GX_LCD_SIZE_Y - y) in DEMOiFillRect()
357 wy = GX_LCD_SIZE_Y - y; in DEMOiFillRect()
359 if ((wx > 0) && (wy > 0)) in DEMOiFillRect()
363 while (--wy >= 0) in DEMOiFillRect()
387 void DEMOBlitRect(int x, int y, int wx, int wy, const GXRgb *image, int stroke) in DEMOBlitRect() argument
395 if (wy > GX_LCD_SIZE_Y - y) in DEMOBlitRect()
397 wy = GX_LCD_SIZE_Y - y; in DEMOBlitRect()
399 if ((wx > 0) && (wy > 0)) in DEMOBlitRect()
403 while (--wy >= 0) in DEMOBlitRect()
428 void DEMOBlitTex16(int x, int y, int wx, int wy, const void *chr, const GXRgb *plt) in DEMOBlitTex16() argument
437 if (wy > GX_LCD_SIZE_Y - y) in DEMOBlitTex16()
439 wy = GX_LCD_SIZE_Y - y; in DEMOBlitTex16()
441 if ((wx > 0) && (wy > 0)) in DEMOBlitTex16()
447 for (ty = 0; ty < wy; ty += 8) in DEMOBlitTex16()
449 ny = MATH_MIN(wy - ty, 8); in DEMOBlitTex16()
499 int wy = ty - sy; in DEMOiDrawLine() local
503 if (wy < 0) in DEMOiDrawLine()
505 wy = -wy; in DEMOiDrawLine()
512 wy += sy, sy = 0; in DEMOiDrawLine()
514 if (wy > GX_LCD_SIZE_Y - sy) in DEMOiDrawLine()
516 wy = GX_LCD_SIZE_Y - sy; in DEMOiDrawLine()
519 while (--wy >= 0) in DEMOiDrawLine()
527 else if (!wy) in DEMOiDrawLine()
550 if (wy < 0) in DEMOiDrawLine()
552 wy = -wy; in DEMOiDrawLine()
556 dx = wy - 1, dy = wx - 1; in DEMOiDrawLine()
558 for (n = wx * wy; --n >= 0;) in DEMOiDrawLine()
561 if (++dx >= wy) in DEMOiDrawLine()
593 void DEMOiDrawFrame(int x, int y, int wx, int wy, GXRgb color) in DEMOiDrawFrame() argument
596 DEMOiFillRect(x, y + wy - 1, wx, 1, color); in DEMOiDrawFrame()
597 DEMOiFillRect(x, y + 1, 1, wy - 1, color); in DEMOiDrawFrame()
598 DEMOiFillRect(x + wx - 1, y + 1, 1, wy - 1, color); in DEMOiDrawFrame()
671 int wx = 8, wy = 8; in DEMODrawText() local
686 wy = MATH_MIN(wy, GX_LCD_SIZE_Y - y); in DEMODrawText()
693 for (; oy < wy; ++oy) in DEMODrawText()
852 void DEMOSetViewPort(int x, int y, int wx, int wy) in DEMOSetViewPort() argument
854 G3_ViewPort(x, (GX_LCD_SIZE_Y - (y + wy)), (x + wx) - 1, (GX_LCD_SIZE_Y - y) - 1); in DEMOSetViewPort()
857 fx32 top = FX32_ONE * wy / wx; in DEMOSetViewPort()
860 G3_Perspective(FX32_SIN30, FX32_COS30, FX32_ONE * wx / wy, near, far, NULL); in DEMOSetViewPort()