зеркало из https://github.com/mozilla/gecko-dev.git
Implement GetDepth(). Before it was hardcoded to 24 in the superclass.
This commit is contained in:
Родитель
dcabadeb57
Коммит
e409f37b03
|
@ -316,3 +316,14 @@ NS_IMETHODIMP nsDeviceContextGTK::EndPage(void)
|
|||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextGTK::GetDepth(PRUint32& aDepth)
|
||||
{
|
||||
GdkVisual * rgb_visual = gdk_rgb_get_visual();
|
||||
|
||||
gint rgb_depth = rgb_visual->depth;
|
||||
|
||||
aDepth = (PRUint32) rgb_depth;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -64,6 +64,8 @@ public:
|
|||
NS_IMETHOD BeginPage(void);
|
||||
NS_IMETHOD EndPage(void);
|
||||
|
||||
NS_IMETHOD GetDepth(PRUint32& aDepth);
|
||||
|
||||
private:
|
||||
PRUint32 mDepth;
|
||||
PRBool mWriteable;
|
||||
|
|
Загрузка…
Ссылка в новой задаче