* Helper function to get the blitter mode for different types of palettes. * @param pal The palette to get the blitter mode for. * @return The blitter mode associated with the palette. */
| 986 | * @return The blitter mode associated with the palette. |
| 987 | */ |
| 988 | static BlitterMode GetBlitterMode(PaletteID pal) |
| 989 | { |
| 990 | switch (pal) { |
| 991 | case PAL_NONE: return BlitterMode::Normal; |
| 992 | case PALETTE_CRASH: return BlitterMode::CrashRemap; |
| 993 | case PALETTE_ALL_BLACK: return BlitterMode::BlackRemap; |
| 994 | default: return BlitterMode::ColourRemap; |
| 995 | } |
| 996 | } |
| 997 | |
| 998 | /** |
| 999 | * Draw a sprite in a viewport. |
no outgoing calls
no test coverage detected