mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-19 12:44:55 -04:00
github publish
This commit is contained in:
commit
506e23bf32
542 changed files with 120675 additions and 0 deletions
54
VIDEO/PLAY.C
Normal file
54
VIDEO/PLAY.C
Normal file
|
@ -0,0 +1,54 @@
|
|||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <graph.h>
|
||||
#include <dos.h>
|
||||
#include "flc.h"
|
||||
#include "vesa.h"
|
||||
|
||||
void Set_TEXT_mode (void);
|
||||
|
||||
void main (int argc, char *argv[])
|
||||
{
|
||||
int x;
|
||||
|
||||
Open_FLC (argv[1]);
|
||||
|
||||
printf ("\nHlavicka FLC souboru %s:\n", argv[1]);
|
||||
printf ("Delka celeho souboru: %d\n", h_flc.size);
|
||||
printf ("Pocet frame: %d\n", h_flc.frames);
|
||||
printf ("Velikost filmu: %dx%d\n", h_flc.width, h_flc.height);
|
||||
printf ("Hloubka barvy: %d\n", h_flc.color);
|
||||
// printf ("Rychlost prehravani: %d fps\n", 1000/h_flc.speed);
|
||||
printf ("Offset prvniho frame: %d\n", h_flc.offset1);
|
||||
getch ();
|
||||
|
||||
Set_VESA_mode (0x101);
|
||||
delay (1000);
|
||||
|
||||
Get_first_frame ();
|
||||
Decompress_frame ();
|
||||
Show_screen (frame_buffer);
|
||||
|
||||
for (x=2; x<=h_flc.frames; x++)
|
||||
{
|
||||
Get_next_frame ();
|
||||
Decompress_frame ();
|
||||
Show_screen (frame_buffer);
|
||||
delay (7);
|
||||
}
|
||||
getch ();
|
||||
|
||||
Set_TEXT_mode ();
|
||||
Close_FLC ();
|
||||
}
|
||||
|
||||
void Set_TEXT_mode (void)
|
||||
{
|
||||
union REGS inr, outr;
|
||||
|
||||
inr.h.ah = 0x00;
|
||||
inr.h.al = 03;
|
||||
int386 (0x10, &inr, &outr);
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue