📄 newspr.c
字号:
static void FUNC##_32_R090_Y_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipX(SPR, y, x, ARGS_2); \} \ \static void FUNC##_32_R180_Y_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipY(SPR, x, YOFS## - y, ARGS_1); \} \ \static void FUNC##_32_R270_Y_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipX(SPR, YOFS## - y, XOFS## - x, ARGS_2); \} \ \ \static void FUNC##_32_R000_XY_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipXY(SPR, XOFS## - x, y, ARGS_1); \} \ \static void FUNC##_32_R090_XY_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipXY(SPR, y, x, ARGS_2); \} \ \static void FUNC##_32_R180_XY_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipXY(SPR, x, YOFS## - y, ARGS_1); \} \ \static void FUNC##_32_R270_XY_FX(UINT8 *SPR, int x, int y, ARGS) \{ \ FUNC##_32_FlipXY(SPR, YOFS## - y, XOFS## - x, ARGS_2); \} \ \ \CMAP_FUNC *FUNC##_Flip_Rot[4]; \ \static void FUNC##_init_jump_table(void) \{ \ UINT32 i; \ \ i = display_cfg.rotate; \ i ^= display_cfg.flip & 2; \ \ switch(internal_bpp(display_cfg.bpp)){ \ case 8: \ \ if((display_cfg.flip == 0) || (display_cfg.flip == 3)){ \ \ switch(i){ \ case 0: \ FUNC##_Flip_Rot[0] = &FUNC##; \ FUNC##_Flip_Rot[1] = &FUNC##_FlipY; \ FUNC##_Flip_Rot[2] = &FUNC##_FlipX; \ FUNC##_Flip_Rot[3] = &FUNC##_FlipXY; \ break; \ case 1: \ FUNC##_Flip_Rot[0] = &FUNC##_R090; \ FUNC##_Flip_Rot[1] = &FUNC##_R090_Y; \ FUNC##_Flip_Rot[2] = &FUNC##_R090_X; \ FUNC##_Flip_Rot[3] = &FUNC##_R090_XY; \ break; \ case 2: \ FUNC##_Flip_Rot[0] = &FUNC##_R180; \ FUNC##_Flip_Rot[1] = &FUNC##_R180_Y; \ FUNC##_Flip_Rot[2] = &FUNC##_R180_X; \ FUNC##_Flip_Rot[3] = &FUNC##_R180_XY; \ break; \ case 3: \ FUNC##_Flip_Rot[0] = &FUNC##_R270; \ FUNC##_Flip_Rot[1] = &FUNC##_R270_Y; \ FUNC##_Flip_Rot[2] = &FUNC##_R270_X; \ FUNC##_Flip_Rot[3] = &FUNC##_R270_XY; \ break; \ }; \ \ } \ else{ \ \ switch(i){ \ case 0: \ FUNC##_Flip_Rot[0] = &FUNC##_R000_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_R000_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_R000_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_R000_XY_FX; \ break; \ case 1: \ FUNC##_Flip_Rot[0] = &FUNC##_R090_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_R090_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_R090_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_R090_XY_FX; \ break; \ case 2: \ FUNC##_Flip_Rot[0] = &FUNC##_R180_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_R180_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_R180_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_R180_XY_FX; \ break; \ case 3: \ FUNC##_Flip_Rot[0] = &FUNC##_R270_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_R270_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_R270_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_R270_XY_FX; \ break; \ }; \ \ }; \ \ break; \ case 16: \ \ if((display_cfg.flip == 0) || (display_cfg.flip == 3)){ \ \ switch(i){ \ case 0: \ FUNC##_Flip_Rot[0] = &FUNC##_16; \ FUNC##_Flip_Rot[1] = &FUNC##_16_FlipY; \ FUNC##_Flip_Rot[2] = &FUNC##_16_FlipX; \ FUNC##_Flip_Rot[3] = &FUNC##_16_FlipXY; \ break; \ case 1: \ FUNC##_Flip_Rot[0] = &FUNC##_16_R090; \ FUNC##_Flip_Rot[1] = &FUNC##_16_R090_Y; \ FUNC##_Flip_Rot[2] = &FUNC##_16_R090_X; \ FUNC##_Flip_Rot[3] = &FUNC##_16_R090_XY; \ break; \ case 2: \ FUNC##_Flip_Rot[0] = &FUNC##_16_R180; \ FUNC##_Flip_Rot[1] = &FUNC##_16_R180_Y; \ FUNC##_Flip_Rot[2] = &FUNC##_16_R180_X; \ FUNC##_Flip_Rot[3] = &FUNC##_16_R180_XY; \ break; \ case 3: \ FUNC##_Flip_Rot[0] = &FUNC##_16_R270; \ FUNC##_Flip_Rot[1] = &FUNC##_16_R270_Y; \ FUNC##_Flip_Rot[2] = &FUNC##_16_R270_X; \ FUNC##_Flip_Rot[3] = &FUNC##_16_R270_XY; \ break; \ }; \ \ } \ else{ \ \ switch(i){ \ case 0: \ FUNC##_Flip_Rot[0] = &FUNC##_16_R000_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_16_R000_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_16_R000_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_16_R000_XY_FX; \ break; \ case 1: \ FUNC##_Flip_Rot[0] = &FUNC##_16_R090_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_16_R090_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_16_R090_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_16_R090_XY_FX; \ break; \ case 2: \ FUNC##_Flip_Rot[0] = &FUNC##_16_R180_FX; \ FUNC##_Flip_Rot[1] = &FUNC##_16_R180_Y_FX; \ FUNC##_Flip_Rot[2] = &FUNC##_16_R180_X_FX; \ FUNC##_Flip_Rot[3] = &FUNC##_16_R180_XY_FX; \ break;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -