| 2231 | //=========================================================================== |
| 2232 | |
| 2233 | void NTSC_SetVideoStyle(void) |
| 2234 | { |
| 2235 | const bool half = GetVideo().IsVideoStyle(VS_HALF_SCANLINES); |
| 2236 | const VideoRefreshRate_e refresh = GetVideo().GetVideoRefreshRate(); |
| 2237 | uint8_t r, g, b; |
| 2238 | |
| 2239 | switch ( GetVideo().GetVideoType() ) |
| 2240 | { |
| 2241 | case VT_COLOR_TV: |
| 2242 | r = 0xFF; |
| 2243 | g = 0xFF; |
| 2244 | b = 0xFF; |
| 2245 | updateMonochromeTables( r, g, b ); |
| 2246 | if (half) |
| 2247 | { |
| 2248 | g_pFuncUpdateBnWPixel = updatePixelBnWColorTVSingleScanline; |
| 2249 | g_pFuncUpdateHuePixel = updatePixelHueColorTVSingleScanline; |
| 2250 | } |
| 2251 | else |
| 2252 | { |
| 2253 | g_pFuncUpdateBnWPixel = updatePixelBnWColorTVDoubleScanline; |
| 2254 | g_pFuncUpdateHuePixel = updatePixelHueColorTVDoubleScanline; |
| 2255 | } |
| 2256 | break; |
| 2257 | |
| 2258 | case VT_COLOR_MONITOR_NTSC: |
| 2259 | default: |
| 2260 | r = 0xFF; |
| 2261 | g = 0xFF; |
| 2262 | b = 0xFF; |
| 2263 | updateMonochromeTables( r, g, b ); |
| 2264 | if (half) |
| 2265 | { |
| 2266 | g_pFuncUpdateBnWPixel = updatePixelBnWMonitorSingleScanline; |
| 2267 | g_pFuncUpdateHuePixel = updatePixelHueMonitorSingleScanline; |
| 2268 | } |
| 2269 | else |
| 2270 | { |
| 2271 | g_pFuncUpdateBnWPixel = updatePixelBnWMonitorDoubleScanline; |
| 2272 | g_pFuncUpdateHuePixel = updatePixelHueMonitorDoubleScanline; |
| 2273 | } |
| 2274 | break; |
| 2275 | |
| 2276 | case VT_MONO_TV: |
| 2277 | r = 0xFF; |
| 2278 | g = 0xFF; |
| 2279 | b = 0xFF; |
| 2280 | updateMonochromeTables( r, g, b ); // Custom Monochrome color |
| 2281 | if (half) |
| 2282 | g_pFuncUpdateBnWPixel = g_pFuncUpdateHuePixel = updatePixelBnWColorTVSingleScanline; |
| 2283 | else |
| 2284 | g_pFuncUpdateBnWPixel = g_pFuncUpdateHuePixel = updatePixelBnWColorTVDoubleScanline; |
| 2285 | break; |
| 2286 | |
| 2287 | case VT_MONO_AMBER: |
| 2288 | r = 0xFF; |
| 2289 | g = 0x80; |
| 2290 | b = 0x00; |
no test coverage detected