canvas: sal_Bool -> bool
Change-Id: I4292b0e8810fac781e64272b315dd32eced3623c
This commit is contained in:
@@ -85,16 +85,16 @@ namespace cairocanvas
|
|||||||
// _always_ will have exactly one backbuffer
|
// _always_ will have exactly one backbuffer
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SpriteDeviceHelper::showBuffer( bool, sal_Bool )
|
bool SpriteDeviceHelper::showBuffer( bool, bool )
|
||||||
{
|
{
|
||||||
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SpriteDeviceHelper::switchBuffer( bool, sal_Bool )
|
bool SpriteDeviceHelper::switchBuffer( bool, bool )
|
||||||
{
|
{
|
||||||
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Any SpriteDeviceHelper::isAccelerated() const
|
uno::Any SpriteDeviceHelper::isAccelerated() const
|
||||||
|
@@ -54,8 +54,8 @@ namespace cairocanvas
|
|||||||
// XWindowGraphicDevice
|
// XWindowGraphicDevice
|
||||||
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
|
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
|
||||||
void destroyBuffers( );
|
void destroyBuffers( );
|
||||||
sal_Bool showBuffer( bool, sal_Bool );
|
bool showBuffer( bool, bool );
|
||||||
sal_Bool switchBuffer( bool, sal_Bool bUpdateAll );
|
bool switchBuffer( bool, bool bUpdateAll );
|
||||||
|
|
||||||
::com::sun::star::uno::Any isAccelerated() const;
|
::com::sun::star::uno::Any isAccelerated() const;
|
||||||
::com::sun::star::uno::Any getDeviceHandle() const;
|
::com::sun::star::uno::Any getDeviceHandle() const;
|
||||||
|
@@ -875,7 +875,7 @@ namespace oglcanvas
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SpriteDeviceHelper::showBuffer( bool bIsVisible, sal_Bool /*bUpdateAll*/ )
|
bool SpriteDeviceHelper::showBuffer( bool bIsVisible, bool /*bUpdateAll*/ )
|
||||||
{
|
{
|
||||||
// hidden or disposed?
|
// hidden or disposed?
|
||||||
if( !bIsVisible || !mpChildWindow || !mpSpriteCanvas )
|
if( !bIsVisible || !mpChildWindow || !mpSpriteCanvas )
|
||||||
@@ -940,7 +940,7 @@ namespace oglcanvas
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SpriteDeviceHelper::switchBuffer( bool bIsVisible, sal_Bool bUpdateAll )
|
bool SpriteDeviceHelper::switchBuffer( bool bIsVisible, bool bUpdateAll )
|
||||||
{
|
{
|
||||||
// no difference for VCL canvas
|
// no difference for VCL canvas
|
||||||
return showBuffer( bIsVisible, bUpdateAll );
|
return showBuffer( bIsVisible, bUpdateAll );
|
||||||
|
@@ -75,8 +75,8 @@ namespace oglcanvas
|
|||||||
|
|
||||||
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
|
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
|
||||||
void destroyBuffers( );
|
void destroyBuffers( );
|
||||||
sal_Bool showBuffer( bool bIsVisible, sal_Bool bUpdateAll );
|
bool showBuffer( bool bIsVisible, bool bUpdateAll );
|
||||||
sal_Bool switchBuffer( bool bIsVisible, sal_Bool bUpdateAll );
|
bool switchBuffer( bool bIsVisible, bool bUpdateAll );
|
||||||
|
|
||||||
::com::sun::star::uno::Any isAccelerated() const;
|
::com::sun::star::uno::Any isAccelerated() const;
|
||||||
::com::sun::star::uno::Any getDeviceHandle() const;
|
::com::sun::star::uno::Any getDeviceHandle() const;
|
||||||
|
@@ -74,16 +74,16 @@ namespace vclcanvas
|
|||||||
// _always_ will have exactly one backbuffer
|
// _always_ will have exactly one backbuffer
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SpriteDeviceHelper::showBuffer( bool, sal_Bool )
|
bool SpriteDeviceHelper::showBuffer( bool, bool )
|
||||||
{
|
{
|
||||||
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SpriteDeviceHelper::switchBuffer( bool, sal_Bool )
|
bool SpriteDeviceHelper::switchBuffer( bool, bool )
|
||||||
{
|
{
|
||||||
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
|
||||||
return sal_False;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpriteDeviceHelper::disposing()
|
void SpriteDeviceHelper::disposing()
|
||||||
|
@@ -50,8 +50,8 @@ namespace vclcanvas
|
|||||||
|
|
||||||
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
|
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
|
||||||
void destroyBuffers( );
|
void destroyBuffers( );
|
||||||
sal_Bool showBuffer( bool bWindowVisible, sal_Bool bUpdateAll );
|
bool showBuffer( bool bWindowVisible, bool bUpdateAll );
|
||||||
sal_Bool switchBuffer( bool bWindowVisible, sal_Bool bUpdateAll );
|
bool switchBuffer( bool bWindowVisible, bool bUpdateAll );
|
||||||
|
|
||||||
::com::sun::star::uno::Any isAccelerated() const;
|
::com::sun::star::uno::Any isAccelerated() const;
|
||||||
::com::sun::star::uno::Any getDeviceHandle() const;
|
::com::sun::star::uno::Any getDeviceHandle() const;
|
||||||
|
Reference in New Issue
Block a user