16 animation.PlayFrame(image);
18 surface = temp.GetSurface(0,0,null);
21 surface.Stretch(image, 0,0,0,0, temp.width, temp.height, image.width, image.height);
24 surface.Blit(image, 0,0,0,0, image.width, image.height);
27 if(animation.frame >= animation.numFrames)
36 property const char * animation
41 if(!(animation.Load(value)))
43 String s = PrintString("Couldn't load animation ", value, ".");
44 MessageBox { caption = "Ecere FLC Player", contents = s }.Modal();
50 image.Allocate(null, animation.width, animation.height, 0, pixelFormat8, true);
51 temp.Allocate(null, animation.width, animation.height, 0, pixelFormat888, true);
54 animation.PlayFrame(image);
55 timer.delay = animation.speed;
64 void OnResize(int w, int h)
68 // temp.Allocate(null, w, h, 0, PixelFormatRGBA, false);
69 temp.Allocate(null, w, h, 0, PixelFormat888, false);
70 surface = temp.GetSurface(0,0,null);
71 surface.Stretch(image, 0,0,0,0, temp.width, temp.height,
72 image.width, image.height);
77 void OnRedraw(Surface surface)
79 if(animation.palUpdate)
81 display.SetPalette(animation.palette, false);
82 animation.palUpdate = false;
84 //surface.Blit(temp, 0,0,0,0,temp.width,temp.height);
85 // surface.Blit(image, 0,0,0,0,image.width,image.height);
86 surface.Stretch(temp, 0,0,0,0, clientSize.w, clientSize.h, temp.width,temp.height);
88 //surface.Stretch(image, 0,0,0,0, clientSize.w, clientSize.h, image.width,image.height);
97 bool OnKeyDown(Key key, unichar ch)