Lines Matching refs:wx
347 void DEMOiFillRect(int x, int y, int wx, int wy, GXRgb color) in DEMOiFillRect() argument
351 if (wx > GX_LCD_SIZE_X - x) in DEMOiFillRect()
353 wx = GX_LCD_SIZE_X - x; in DEMOiFillRect()
359 if ((wx > 0) && (wy > 0)) in DEMOiFillRect()
365 MI_CpuFill16(dst, color, wx * sizeof(GXRgb)); in DEMOiFillRect()
387 void DEMOBlitRect(int x, int y, int wx, int wy, const GXRgb *image, int stroke) in DEMOBlitRect() argument
391 if (wx > GX_LCD_SIZE_X - x) in DEMOBlitRect()
393 wx = GX_LCD_SIZE_X - x; in DEMOBlitRect()
399 if ((wx > 0) && (wy > 0)) in DEMOBlitRect()
405 MI_CpuCopy16(image, dst, wx * sizeof(GXRgb)); in DEMOBlitRect()
428 void DEMOBlitTex16(int x, int y, int wx, int wy, const void *chr, const GXRgb *plt) in DEMOBlitTex16() argument
432 int stroke = wx; in DEMOBlitTex16()
433 if (wx > GX_LCD_SIZE_X - x) in DEMOBlitTex16()
435 wx = GX_LCD_SIZE_X - x; in DEMOBlitTex16()
441 if ((wx > 0) && (wy > 0)) in DEMOBlitTex16()
450 for (tx = 0; tx < wx; tx += 8) in DEMOBlitTex16()
452 nx = MATH_MIN(wx - tx, 8); in DEMOBlitTex16()
498 int wx = tx - sx; in DEMOiDrawLine() local
501 if (!wx) in DEMOiDrawLine()
533 wx += sx, sx = 0; in DEMOiDrawLine()
535 if (wx > GX_LCD_SIZE_X - sx) in DEMOiDrawLine()
537 wx = GX_LCD_SIZE_X - sx; in DEMOiDrawLine()
540 MI_CpuFill16(dst, color, wx * sizeof(GXRgb)); in DEMOiDrawLine()
556 dx = wy - 1, dy = wx - 1; in DEMOiDrawLine()
558 for (n = wx * wy; --n >= 0;) in DEMOiDrawLine()
565 if (++dy >= wx) in DEMOiDrawLine()
593 void DEMOiDrawFrame(int x, int y, int wx, int wy, GXRgb color) in DEMOiDrawFrame() argument
595 DEMOiFillRect(x, y, wx, 1, color); in DEMOiDrawFrame()
596 DEMOiFillRect(x, y + wy - 1, wx, 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
678 wx = MATH_MIN(wx, GX_LCD_SIZE_X - tx); in DEMODrawText()
697 for (i = ox; i < wx; ++i) 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()