Previous 199869 Revisions Next

r31864 Tuesday 2nd September, 2014 at 02:08:13 UTC by R. Belmont
SDL: remove dead code from SDL2 renderer, fix laserdisc crash with SDL2 -video accel rendering. [R. Belmont]
[src/osd/sdl]draw13.c

trunk/src/osd/sdl/draw13.c
r31863r31864
206206   ENTRY(YUY16,            YUY2,       2, 0, yuv16_yuy2),
207207   ENTRY(YUY16,            YVYU,       2, 0, yuv16_yvyu),
208208   ENTRY(YUY16,            ARGB8888,   4, 0, yuv16_argb32),
209   ENTRY(YUY16,            RGB888,     4, 0, yuv16pal_argb32),
209   ENTRY(YUY16,            RGB888,     4, 0, yuv16_argb32),
210210
211211   ENTRY(YUY16_PALETTED,   UYVY,       2, 0, yuv16pal_uyvy),
212212   ENTRY(YUY16_PALETTED,   YUY2,       2, 0, yuv16pal_yuy2),
r31863r31864
265265{ -1 },
266266};
267267
268static 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
287268static copy_info *blit_info[SDL_TEXFORMAT_LAST+1];
288269
289270static struct
r31863r31864
497478   osd_printf_verbose("Using SDL native texturing driver (SDL 2.0+)\n");
498479
499480   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);
503481
504482   // Load the GL library now - else MT will fail
505
506483   stemp = downcast<sdl_options &>(machine.options()).gl_lib();
507484   if (stemp != NULL && strcmp(stemp, SDLOPTVAL_AUTO) == 0)
508485      stemp = NULL;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team