Changed BackgroundEffects files to apply the playback rate to videos. Added GetUpdateRate to ActorFrame and Get/SetDecodeMovie to Sprite. Hope nobody is caught off guard by checkerboard no longer playing videos back at 4x rate.
This commit is contained in:
@@ -6,7 +6,14 @@ local t = Def.ActorFrame {
|
||||
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
|
||||
self:scale_or_crop_background()
|
||||
self:diffuse(Color1)
|
||||
if self.loop ~= nil then
|
||||
-- The playback rate in the simfile is used to set the update rate
|
||||
-- on the ActorFrame, but effectclock("music") causes the sprite to
|
||||
-- ignore the passed in delta time and use the music time instead.
|
||||
-- So this passes the update rate in to the texture. -Kyz
|
||||
if self.GetTexture then
|
||||
self:GetTexture():rate(self:GetParent():GetUpdateRate())
|
||||
end
|
||||
if self.loop then
|
||||
self:loop(false)
|
||||
-- make videos start at beginning to prevent sticking on last frame
|
||||
self:position(0)
|
||||
|
||||
Reference in New Issue
Block a user