Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11 | Rev 18 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "flicplay.h" |
1 | #include "flicplay.h" |
2 | #include " |
2 | #include "brender.h" |
3 | #include "displays.h" |
3 | #include "displays.h" |
4 | #include "drmem.h" |
4 | #include "drmem.h" |
5 | #include "errors.h" |
5 | #include "errors.h" |
6 | #include "globvars.h" |
6 | #include "globvars.h" |
7 | #include "graphics.h" |
7 | #include "graphics.h" |
Line 734... | Line 734... | ||
734 | MemSkipBytes(&pFlic_info->data, 2); |
734 | MemSkipBytes(&pFlic_info->data, 2); |
735 | claimed_speed = MemReadU16(&pFlic_info->data); |
735 | claimed_speed = MemReadU16(&pFlic_info->data); |
736 | MemSkipBytes(&pFlic_info->data, 0x6e); |
736 | MemSkipBytes(&pFlic_info->data, 0x6e); |
737 | pFlic_info->the_pixelmap = pDest_pixelmap; |
737 | pFlic_info->the_pixelmap = pDest_pixelmap; |
738 | 738 | ||
739 | if (pX_offset |
739 | if (pX_offset != -1) { |
740 | if (pDest_pixelmap != NULL) { |
- | |
741 | pFlic_info->x_offset = (pDest_pixelmap->width - pFlic_info->width) / 2; |
- | |
742 | } else { |
- | |
743 | pFlic_info->x_offset = 0; |
- | |
744 | } |
- | |
745 | } else { |
- | |
746 | pFlic_info->x_offset = pX_offset; |
740 | pFlic_info->x_offset = pX_offset; |
- | 741 | } else if (pDest_pixelmap != NULL) { |
|
- | 742 | pFlic_info->x_offset = (pDest_pixelmap->width - pFlic_info->width) / 2; |
|
- | 743 | } else { |
|
- | 744 | pFlic_info->x_offset = 0; |
|
747 | } |
745 | } |
748 | if (pY_offset |
746 | if (pY_offset != -1) { |
- | 747 | pFlic_info->y_offset = pY_offset; |
|
749 |
|
748 | } else if (pDest_pixelmap != NULL) { |
750 |
|
749 | pFlic_info->y_offset = (pDest_pixelmap->height - pFlic_info->height) / 2; |
751 | } else { |
- | |
752 | pFlic_info->y_offset = 0; |
- | |
753 | } |
- | |
754 | } else { |
750 | } else { |
755 | pFlic_info->y_offset = |
751 | pFlic_info->y_offset = 0; |
756 | } |
752 | } |
757 | 753 | ||
758 | if (pFrame_rate != 0) { |
754 | if (pFrame_rate != 0) { |
759 | pFlic_info->frame_period = 1000 / pFrame_rate; |
755 | pFlic_info->frame_period = 1000 / pFrame_rate; |
760 | } else { |
756 | } else { |