Lines Matching refs:y
248 int x, y; in DEMO_DrawFlip() local
249 for (y = 0; y < visible_lines; ++y) in DEMO_DrawFlip()
251 u16 *dst = &context->sub_bg[y * 32]; in DEMO_DrawFlip()
252 const char *src = context->sub_log[(offset + y) % 24]; 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()
355 if (wy > GX_LCD_SIZE_Y - y) in DEMOiFillRect()
357 wy = GX_LCD_SIZE_Y - y; 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()
395 if (wy > GX_LCD_SIZE_Y - y) in DEMOBlitRect()
397 wy = GX_LCD_SIZE_Y - y; 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()
437 if (wy > GX_LCD_SIZE_Y - y) in DEMOBlitTex16()
439 wy = GX_LCD_SIZE_Y - y; 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()
648 y += 8; in DEMODrawText()
668 (y > -8) && (y < GX_LCD_SIZE_Y)) in DEMODrawText()
680 if (y < 0) in DEMODrawText()
682 oy = -y; in DEMODrawText()
686 wy = MATH_MIN(wy, GX_LCD_SIZE_Y - y); in DEMODrawText()
748 void DEMOPutString(int x, int y, const char *format, ...) in DEMOPutString() argument
751 u16 *dst = &context->main_bg[y * 32]; in DEMOPutString()
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()