void pspVideoGlowRect(int sx, int sy, int dx, int dy, uint32_t color, int radius) { int i; uint32_t alpha; color &= ~0xff000000; for (i = radius, alpha = 0x30000000; i > 0; i--, alpha += 0x20000000) pspVideoDrawRect(sx - i, sy - i, dx + i, dy + i, color | alpha); }
/* Handles any special drawing for the system menu */ void OnSystemRender(const void *uiobject, const void *item_obj) { int w, h, x, y; w = Screen->Viewport.Width*1.5; h = Screen->Viewport.Height*1.5; x = SCR_WIDTH - w - 16; y = SCR_HEIGHT - h - 80; /* Draw a small representation of the screen */ pspVideoShadowRect(x, y, x + w - 1, y + h - 1, PSP_COLOR_BLACK, 3); pspVideoPutImage(Screen, x, y, w, h); pspVideoDrawRect(x, y, x + w - 1, y + h - 1, PSP_COLOR_GRAY); OnGenericRender(uiobject, item_obj); }