trunk/src/osd/sdl/draw13.c
| r31863 | r31864 | |
| 206 | 206 | ENTRY(YUY16, YUY2, 2, 0, yuv16_yuy2), |
| 207 | 207 | ENTRY(YUY16, YVYU, 2, 0, yuv16_yvyu), |
| 208 | 208 | ENTRY(YUY16, ARGB8888, 4, 0, yuv16_argb32), |
| 209 | | ENTRY(YUY16, RGB888, 4, 0, yuv16pal_argb32), |
| 209 | ENTRY(YUY16, RGB888, 4, 0, yuv16_argb32), |
| 210 | 210 | |
| 211 | 211 | ENTRY(YUY16_PALETTED, UYVY, 2, 0, yuv16pal_uyvy), |
| 212 | 212 | ENTRY(YUY16_PALETTED, YUY2, 2, 0, yuv16pal_yuy2), |
| r31863 | r31864 | |
| 265 | 265 | { -1 }, |
| 266 | 266 | }; |
| 267 | 267 | |
| 268 | | static copy_info blit_info_16bpp[] = |
| 269 | | { |
| 270 | | /* no rotation */ |
| 271 | | ENTRY(PALETTE16, RGB555, 2, 0, pal16_argb1555), |
| 272 | | ENTRY(PALETTE16, ARGB1555, 2, 0, pal16_argb1555), |
| 273 | | |
| 274 | | ENTRY(RGB15_PALETTED, RGB555, 2, 0, rgb15pal_argb1555), |
| 275 | | ENTRY(RGB15_PALETTED, ARGB1555, 2, 0, rgb15pal_argb1555), |
| 276 | | |
| 277 | | /* rotation */ |
| 278 | | ENTRY(PALETTE16, RGB555, 2, 1, rot_pal16_argb1555), |
| 279 | | ENTRY(PALETTE16, ARGB1555, 2, 1, rot_pal16_argb1555), |
| 280 | | |
| 281 | | ENTRY(RGB15_PALETTED, RGB555, 2, 1, rot_rgb15pal_argb1555), |
| 282 | | ENTRY(RGB15_PALETTED, ARGB1555, 2, 1, rot_rgb15pal_argb1555), |
| 283 | | |
| 284 | | { -1 }, |
| 285 | | }; |
| 286 | | |
| 287 | 268 | static copy_info *blit_info[SDL_TEXFORMAT_LAST+1]; |
| 288 | 269 | |
| 289 | 270 | static struct |
| r31863 | r31864 | |
| 497 | 478 | osd_printf_verbose("Using SDL native texturing driver (SDL 2.0+)\n"); |
| 498 | 479 | |
| 499 | 480 | expand_copy_info(blit_info_default); |
| 500 | | //FIXME: -opengl16 should be -opengl -prefer16bpp |
| 501 | | //if (video_config.prefer16bpp_tex) |
| 502 | | expand_copy_info(blit_info_16bpp); |
| 503 | 481 | |
| 504 | 482 | // Load the GL library now - else MT will fail |
| 505 | | |
| 506 | 483 | stemp = downcast<sdl_options &>(machine.options()).gl_lib(); |
| 507 | 484 | if (stemp != NULL && strcmp(stemp, SDLOPTVAL_AUTO) == 0) |
| 508 | 485 | stemp = NULL; |