Lines Matching refs:x

248         int         x, y;  in DEMO_DrawFlip()  local
253 for (x = 0; (x < 32) && src[x] && (src[x] != '\n'); ++x) in DEMO_DrawFlip()
255 dst[x] = (u16)((u8)src[x] | (palette << 12)); in DEMO_DrawFlip()
257 for (; x < 32; ++x) in DEMO_DrawFlip()
259 dst[x] = (u16)(0 | (palette << 12)); in DEMO_DrawFlip()
347 void DEMOiFillRect(int x, int y, int wx, int wy, GXRgb color) in DEMOiFillRect() argument
349 if ((x < GX_LCD_SIZE_X) && (y < GX_LCD_SIZE_Y)) in DEMOiFillRect()
351 if (wx > GX_LCD_SIZE_X - x) in DEMOiFillRect()
353 wx = GX_LCD_SIZE_X - x; in DEMOiFillRect()
362 GXRgb *dst = &context->bitmap_frame[x + y * GX_LCD_SIZE_X]; in DEMOiFillRect()
387 void DEMOBlitRect(int x, int y, int wx, int wy, const GXRgb *image, int stroke) in DEMOBlitRect() argument
389 if ((x < GX_LCD_SIZE_X) && (y < GX_LCD_SIZE_Y)) in DEMOBlitRect()
391 if (wx > GX_LCD_SIZE_X - x) in DEMOBlitRect()
393 wx = GX_LCD_SIZE_X - x; in DEMOBlitRect()
402 GXRgb *dst = &context->bitmap_frame[x + y * GX_LCD_SIZE_X]; in DEMOBlitRect()
428 void DEMOBlitTex16(int x, int y, int wx, int wy, const void *chr, const GXRgb *plt) in DEMOBlitTex16() argument
430 if ((x < GX_LCD_SIZE_X) && (y < GX_LCD_SIZE_Y)) in DEMOBlitTex16()
433 if (wx > GX_LCD_SIZE_X - x) in DEMOBlitTex16()
435 wx = GX_LCD_SIZE_X - x; in DEMOBlitTex16()
445 GXRgb *dst = &context->bitmap_frame[x + y * GX_LCD_SIZE_X]; in DEMOBlitTex16()
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()
597 DEMOiFillRect(x, y + 1, 1, wy - 1, color); in DEMOiDrawFrame()
598 DEMOiFillRect(x + wx - 1, y + 1, 1, wy - 1, color); in DEMOiDrawFrame()
612 void DEMODrawText(int x, int y, const char *format, ...) in DEMODrawText() argument
625 GXRgb *p = &context->bitmap_frame[x + y * GX_LCD_SIZE_X]; in DEMODrawText()
666 int tx = x + px; in DEMODrawText()
748 void DEMOPutString(int x, int y, const char *format, ...) in DEMOPutString() argument
757 (void)OS_VSNPrintf(tmp + x, sizeof(tmp) - x, format, va); in DEMOPutString()
760 for (; (x < 32) && tmp[x]; ++x) in DEMOPutString()
762 dst[x] = (u16)((u8)tmp[x] | (palette << 12)); in DEMOPutString()
789 int x = STD_GetStringLength(dst); in DEMOPutLog() local
801 dst[(x < 32) ? x : 32] = '\0'; in DEMOPutLog()
804 x = 0; in DEMOPutLog()
807 if (x < 32) in DEMOPutLog()
809 dst[x++] = *src; in DEMOPutLog()
814 dst[x] = '\0'; in DEMOPutLog()
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()