6#define CENTER_WINDOW_X(id) (((gWindows[id].parent != WIN_NONE) \
7 ? (gWindows[gWindows[id].parent].width / 2) \
8 : (SCREEN_WIDTH / 2)) \
9 - (gWindows[id].width / 2))
11#define CENTER_WINDOW_Y(id) (((gWindows[id].parent != WIN_NONE) \
12 ? (gWindows[gWindows[id].parent].height / 2) \
13 : (SCREEN_HEIGHT / 2)) \
14 - (gWindows[id].height / 2))
69extern s32 D_802517D0[1];
70extern s32 D_802517D4[1];
71extern u16 D_802517E0[2][0x400];
72extern u8 D_filemenu_8025095C[4];
75#define WINDOW_UPDATE_FUNC(name) void (name)( \
78 s32* posX, s32* posY, s32* posZ,\
79 f32* scaleX, f32* scaleY,\
80 f32* rotX, f32* rotY, f32* rotZ,\
148void filemenu_draw_rect(s32 ulx, s32 uly, s32 lrx, s32 lry, s32 tileIdx, s32 uls, s32 ult, s32 dsdx, s32 dtdy);