Previous 15994 Revisions Next

r2004 Monday 17th March, 2008 at 01:10:11 UTC by R. Belmont
[SDLMESS] Sync to SDLMAME 0.123u5.
[src/osd/sdl]drawogl.c texcopy.c video.c

src/osd/sdl/video.c
r2003r2004
757757
758758static void load_effect_overlay(running_machine *machine, const char *filename)
759759{
760   const device_config *screen;
760761   char *tempstr = malloc_or_die(strlen(filename) + 5);
761   int scrnum;
762   int numscreens;
763762   char *dest;
764763
765764   // append a .PNG extension
r2003r2004
779778   }
780779
781780   // 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);
785783
786784   free(tempstr);
787785}
src/osd/sdl/drawogl.c
r2003r2004
2121#include "osdcomm.h"
2222#include "render.h"
2323#include "options.h"
24#include "deprecat.h"
2425
2526// standard SDL headers
2627#include <SDL/SDL.h>
r2003r2004
285286static void texcopy_palette16a(texture_info *texture, const render_texinfo *texsource);
286287static void texcopy_rgb15(texture_info *texture, const render_texinfo *texsource);
287288static void texcopy_rgb15_paletted(texture_info *texture, const render_texinfo *texsource);
289#ifndef SDLMAME_MACOSX
288290static void texcopy_yuv16(texture_info *texture, const render_texinfo *texsource);
289291static void texcopy_yuv16_paletted(texture_info *texture, const render_texinfo *texsource);
292#endif
290293#ifdef SDLMAME_MACOSX
291294static void texcopy_yuv16_apple(texture_info *texture, const render_texinfo *texsource);
292295static void texcopy_yuv16_paletted_apple(texture_info *texture, const render_texinfo *texsource);
r2003r2004
24852488{
24862489   if ( !texture->lut_texture )
24872490   {
2488      int uniform_location;
2489      render_container *container = render_container_get_screen(window->start_viewscreen);
2491      int uniform_location, scrnum;
2492      render_container *container;
24902493      GLfloat vid_attributes[4]; // gamma, contrast, brightness, effect
2494      const device_config *screen;
24912495
24922496      assert ( sdl->glsl_vid_attributes && texture->format!=SDL_TEXFORMAT_PALETTE16 );
24932497
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
24942510      if (container!=NULL)
24952511      {
24962512         vid_attributes[0] = render_container_get_gamma(container);
src/osd/sdl/texcopy.c
r2003r2004
4646//  (YUY format is weird and doesn't fit the assumptions of the
4747//   standard macros so we handle it here
4848//============================================================
49
49#ifndef SDLMAME_MACOSX
5050static void texcopy_yuv16(texture_info *texture, const render_texinfo *texsource)
5151{
5252   int x, y;
r2003r2004
120120      #endif
121121   }
122122}
123#endif
123124
124125#else // recursive include
125126

Previous 15994 Revisions Next


© 1998-2018 The MESS Team