src/osd/sdl/video.c
| r2003 | r2004 | |
| 757 | 757 | |
| 758 | 758 | static void load_effect_overlay(running_machine *machine, const char *filename) |
| 759 | 759 | { |
| 760 | const device_config *screen; |
| 760 | 761 | char *tempstr = malloc_or_die(strlen(filename) + 5); |
| 761 | | int scrnum; |
| 762 | | int numscreens; |
| 763 | 762 | char *dest; |
| 764 | 763 | |
| 765 | 764 | // append a .PNG extension |
| r2003 | r2004 | |
| 779 | 778 | } |
| 780 | 779 | |
| 781 | 780 | // set the overlay on all screens |
| 782 | | numscreens = video_screen_count(machine->config); |
| 783 | | for (scrnum = 0; scrnum < numscreens; scrnum++) |
| 784 | | render_container_set_overlay(render_container_get_screen(scrnum), effect_bitmap); |
| 781 | for (screen = video_screen_first(machine->config); screen != NULL; screen = video_screen_next(screen)) |
| 782 | render_container_set_overlay(render_container_get_screen(screen), effect_bitmap); |
| 785 | 783 | |
| 786 | 784 | free(tempstr); |
| 787 | 785 | } |
src/osd/sdl/drawogl.c
| r2003 | r2004 | |
| 21 | 21 | #include "osdcomm.h" |
| 22 | 22 | #include "render.h" |
| 23 | 23 | #include "options.h" |
| 24 | #include "deprecat.h" |
| 24 | 25 | |
| 25 | 26 | // standard SDL headers |
| 26 | 27 | #include <SDL/SDL.h> |
| r2003 | r2004 | |
| 285 | 286 | static void texcopy_palette16a(texture_info *texture, const render_texinfo *texsource); |
| 286 | 287 | static void texcopy_rgb15(texture_info *texture, const render_texinfo *texsource); |
| 287 | 288 | static void texcopy_rgb15_paletted(texture_info *texture, const render_texinfo *texsource); |
| 289 | #ifndef SDLMAME_MACOSX |
| 288 | 290 | static void texcopy_yuv16(texture_info *texture, const render_texinfo *texsource); |
| 289 | 291 | static void texcopy_yuv16_paletted(texture_info *texture, const render_texinfo *texsource); |
| 292 | #endif |
| 290 | 293 | #ifdef SDLMAME_MACOSX |
| 291 | 294 | static void texcopy_yuv16_apple(texture_info *texture, const render_texinfo *texsource); |
| 292 | 295 | static void texcopy_yuv16_paletted_apple(texture_info *texture, const render_texinfo *texsource); |
| r2003 | r2004 | |
| 2485 | 2488 | { |
| 2486 | 2489 | if ( !texture->lut_texture ) |
| 2487 | 2490 | { |
| 2488 | | int uniform_location; |
| 2489 | | render_container *container = render_container_get_screen(window->start_viewscreen); |
| 2491 | int uniform_location, scrnum; |
| 2492 | render_container *container; |
| 2490 | 2493 | GLfloat vid_attributes[4]; // gamma, contrast, brightness, effect |
| 2494 | const device_config *screen; |
| 2491 | 2495 | |
| 2492 | 2496 | assert ( sdl->glsl_vid_attributes && texture->format!=SDL_TEXFORMAT_PALETTE16 ); |
| 2493 | 2497 | |
| 2498 | scrnum = 0; |
| 2499 | container = (render_container *)NULL; |
| 2500 | for (screen = video_screen_first(Machine->config); screen != NULL; screen = video_screen_next(screen)) |
| 2501 | { |
| 2502 | if (scrnum == window->start_viewscreen) |
| 2503 | { |
| 2504 | container = render_container_get_screen(screen); |
| 2505 | } |
| 2506 | |
| 2507 | scrnum++; |
| 2508 | } |
| 2509 | |
| 2494 | 2510 | if (container!=NULL) |
| 2495 | 2511 | { |
| 2496 | 2512 | vid_attributes[0] = render_container_get_gamma(container); |