Do not actually blit movie frame if palette has been changed

This commit is contained in:
zicodxx 2008-03-25 13:12:27 +00:00
parent 3a747dbdee
commit b4bbed6ed8
2 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,7 @@ D2X-Rebirth Changelog
20080225
--------
include/loadgl.h, main/newmenu.c, main/titles.c: Added definitions for OpenGL fucntions which might not be included in system headers; Cleaned and declared briefings palette hacks (EMULATING_D1 needs work!); Menu right border shadow was too wide;
main/movie.c: Do not actually blit movie frame if palette has been changed
20080323
--------

View file

@ -174,6 +174,14 @@ int PlayMovie(const char *filename, int must_have)
void MovieShowFrame(ubyte *buf, uint bufw, uint bufh, uint sx, uint sy, uint w, uint h, uint dstx, uint dsty)
{
grs_bitmap source_bm;
static ubyte old_pal[768];
if (memcmp(old_pal,gr_palette,768))
{
memcpy(old_pal,gr_palette,768);
return;
}
memcpy(old_pal,gr_palette,768);
//mprintf((0,"MovieShowFrame %d,%d %d,%d %d,%d %d,%d\n",bufw,bufh,sx,sy,w,h,dstx,dsty));