mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Fixed CWeb compile error(scaling mode)
This commit is contained in:
parent
a2dcc0c85e
commit
7a1ca4b4cf
@ -352,7 +352,7 @@ CWallpaper* CWallpaper::fromWallpaper (Core::CWallpaper* wallpaper, CRenderConte
|
||||
if (wallpaper->is<Core::CVideo> ())
|
||||
return new WallpaperEngine::Render::CVideo (wallpaper->as<Core::CVideo> (), context, audioContext, scalingMode);
|
||||
else if (wallpaper->is <Core::CWeb> ())
|
||||
return new WallpaperEngine::Render::CWeb (wallpaper->as <Core::CWeb> (), context, audioContext);
|
||||
return new WallpaperEngine::Render::CWeb (wallpaper->as <Core::CWeb> (), context, audioContext, scalingMode);
|
||||
else
|
||||
sLog.exception ("Unsupported wallpaper type");
|
||||
}
|
@ -5,8 +5,8 @@
|
||||
|
||||
using namespace WallpaperEngine::Render;
|
||||
|
||||
CWeb::CWeb (Core::CWeb* web, CRenderContext& context, CAudioContext& audioContext) :
|
||||
CWallpaper (web, Type, context, audioContext),
|
||||
CWeb::CWeb (Core::CWeb* web, CRenderContext& context, CAudioContext& audioContext, const CWallpaperState::TextureUVsScaling& scalingMode) :
|
||||
CWallpaper (web, Type, context, audioContext, scalingMode),
|
||||
m_width (context.getOutput ().getFullWidth ()),
|
||||
m_height (context.getOutput ().getFullHeight ()),
|
||||
m_browser(),
|
||||
|
@ -19,7 +19,7 @@ namespace WallpaperEngine::Render
|
||||
class CWeb : public CWallpaper
|
||||
{
|
||||
public:
|
||||
CWeb (Core::CWeb* scene, CRenderContext& context, CAudioContext& audioContext);
|
||||
CWeb (Core::CWeb* scene, CRenderContext& context, CAudioContext& audioContext, const CWallpaperState::TextureUVsScaling& scalingMode);
|
||||
~CWeb();
|
||||
uint32_t getWidth () const override { return this->m_width; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user