Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6a1ec8a0
Kaydet (Commit)
6a1ec8a0
authored
Ock 17, 2011
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid some useless and confusing void* <-> XRenderPictFormat* casts
üst
4a45c1b5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
32 deletions
+32
-32
sysdata.hxx
vcl/inc/vcl/sysdata.hxx
+1
-1
svpgdi.cxx
vcl/unx/headless/svpgdi.cxx
+1
-1
svppspgraphics.cxx
vcl/unx/headless/svppspgraphics.cxx
+1
-1
salgdi.h
vcl/unx/inc/salgdi.h
+4
-4
salvd.h
vcl/unx/inc/salvd.h
+1
-1
pspgraphics.cxx
vcl/unx/source/gdi/pspgraphics.cxx
+1
-1
salgdi.cxx
vcl/unx/source/gdi/salgdi.cxx
+14
-14
salgdi3.cxx
vcl/unx/source/gdi/salgdi3.cxx
+2
-2
salvd.cxx
vcl/unx/source/gdi/salvd.cxx
+7
-7
No files found.
vcl/inc/vcl/sysdata.hxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -122,7 +122,7 @@ struct SystemGraphicsData
int
nScreen
;
// the current screen of the drawable
int
nDepth
;
// depth of said visual
long
aColormap
;
// the colormap being used
void
*
pRenderFormat
;
// render format for drawable
void
*
p
X
RenderFormat
;
// render format for drawable
#endif
};
...
...
vcl/unx/headless/svpgdi.cxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -577,7 +577,7 @@ SystemGraphicsData SvpSalGraphics::GetGraphicsData() const
SystemGraphicsData
aRes
;
aRes
.
nSize
=
sizeof
(
aRes
);
aRes
.
hDrawable
=
0
;
aRes
.
pRenderFormat
=
0
;
aRes
.
p
X
RenderFormat
=
0
;
return
aRes
;
}
...
...
vcl/unx/headless/svppspgraphics.cxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -1363,7 +1363,7 @@ SystemGraphicsData PspGraphics::GetGraphicsData() const
SystemGraphicsData
aRes
;
aRes
.
nSize
=
sizeof
(
aRes
);
aRes
.
hDrawable
=
0
;
aRes
.
pRenderFormat
=
0
;
aRes
.
p
X
RenderFormat
=
0
;
return
aRes
;
}
...
...
vcl/unx/inc/salgdi.h
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -89,8 +89,8 @@ protected:
SalColormap
*
m_pDeleteColormap
;
Drawable
hDrawable_
;
// use
int
m_nScreen
;
void
*
m_p
RenderFormat
;
XID
m_aRenderPicture
;
XRenderPictFormat
*
m_pX
RenderFormat
;
XID
m_a
X
RenderPicture
;
CairoFontsCache
m_aCairoFontsCache
;
XLIB_Region
pPaintRegion_
;
...
...
@@ -221,8 +221,8 @@ public:
inline
Drawable
GetDrawable
()
const
{
return
hDrawable_
;
}
void
SetDrawable
(
Drawable
d
,
int
nScreen
);
XID
GetXRenderPicture
();
void
*
GetXRenderFormat
()
const
{
return
m_p
RenderFormat
;
}
inline
void
SetXRenderFormat
(
void
*
pRenderFormat
)
{
m_pRenderFormat
=
p
RenderFormat
;
}
XRenderPictFormat
*
GetXRenderFormat
()
const
{
return
m_pX
RenderFormat
;
}
inline
void
SetXRenderFormat
(
XRenderPictFormat
*
pXRenderFormat
)
{
m_pXRenderFormat
=
pX
RenderFormat
;
}
inline
const
SalColormap
&
GetColormap
()
const
{
return
*
m_pColormap
;
}
using
SalGraphics
::
GetPixel
;
inline
Pixel
GetPixel
(
SalColor
nSalColor
)
const
;
...
...
vcl/unx/inc/salvd.h
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -62,7 +62,7 @@ public:
USHORT
nBitCount
,
int
nScreen
,
Pixmap
hDrawable
=
None
,
void
*
p
RenderFormat
=
NULL
);
XRenderPictFormat
*
pX
RenderFormat
=
NULL
);
inline
void
InitGraphics
(
X11SalVirtualDevice
*
pVD
);
inline
Display
*
GetXDisplay
()
const
;
...
...
vcl/unx/source/gdi/pspgraphics.cxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -1472,7 +1472,7 @@ SystemGraphicsData PspGraphics::GetGraphicsData() const
SystemGraphicsData
aRes
;
aRes
.
nSize
=
sizeof
(
aRes
);
aRes
.
hDrawable
=
0
;
aRes
.
pRenderFormat
=
0
;
aRes
.
p
X
RenderFormat
=
0
;
return
aRes
;
}
...
...
vcl/unx/source/gdi/salgdi.cxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -102,8 +102,8 @@ X11SalGraphics::X11SalGraphics()
m_pVDev
=
NULL
;
m_pDeleteColormap
=
NULL
;
hDrawable_
=
None
;
m_aRenderPicture
=
0
;
m_pRenderFormat
=
NULL
;
m_a
X
RenderPicture
=
0
;
m_p
X
RenderFormat
=
NULL
;
pClipRegion_
=
NULL
;
pPaintRegion_
=
NULL
;
...
...
@@ -187,8 +187,8 @@ void X11SalGraphics::freeResources()
if
(
m_pDeleteColormap
)
delete
m_pDeleteColormap
,
m_pColormap
=
m_pDeleteColormap
=
NULL
;
if
(
m_aRenderPicture
)
XRenderPeer
::
GetInstance
().
FreePicture
(
m_a
RenderPicture
),
m_a
RenderPicture
=
0
;
if
(
m_a
X
RenderPicture
)
XRenderPeer
::
GetInstance
().
FreePicture
(
m_a
XRenderPicture
),
m_aX
RenderPicture
=
0
;
bPenGC_
=
bFontGC_
=
bBrushGC_
=
bMonoGC_
=
bCopyGC_
=
bInvertGC_
=
bInvert50GC_
=
bStippleGC_
=
bTrackingGC_
=
false
;
}
...
...
@@ -209,10 +209,10 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, int nScreen )
hDrawable_
=
aDrawable
;
SetXRenderFormat
(
NULL
);
if
(
m_aRenderPicture
)
if
(
m_a
X
RenderPicture
)
{
XRenderPeer
::
GetInstance
().
FreePicture
(
m_aRenderPicture
);
m_aRenderPicture
=
0
;
XRenderPeer
::
GetInstance
().
FreePicture
(
m_a
X
RenderPicture
);
m_a
X
RenderPicture
=
0
;
}
if
(
hDrawable_
)
...
...
@@ -1014,11 +1014,11 @@ XID X11SalGraphics::GetXRenderPicture()
{
XRenderPeer
&
rRenderPeer
=
XRenderPeer
::
GetInstance
();
if
(
!
m_aRenderPicture
)
if
(
!
m_a
X
RenderPicture
)
{
// check xrender support for matching visual
// find a XRenderPictFormat compatible with the Drawable
XRenderPictFormat
*
pVisualFormat
=
static_cast
<
XRenderPictFormat
*>
(
GetXRenderFormat
()
);
XRenderPictFormat
*
pVisualFormat
=
GetXRenderFormat
(
);
if
(
!
pVisualFormat
)
{
Visual
*
pVisual
=
GetDisplay
()
->
GetVisual
(
m_nScreen
).
GetVisual
();
...
...
@@ -1026,11 +1026,11 @@ XID X11SalGraphics::GetXRenderPicture()
if
(
!
pVisualFormat
)
return
0
;
// cache the XRenderPictFormat
SetXRenderFormat
(
static_cast
<
void
*>
(
pVisualFormat
)
);
SetXRenderFormat
(
pVisualFormat
);
}
// get the matching xrender target for drawable
m_aRenderPicture
=
rRenderPeer
.
CreatePicture
(
hDrawable_
,
pVisualFormat
,
0
,
NULL
);
m_a
X
RenderPicture
=
rRenderPeer
.
CreatePicture
(
hDrawable_
,
pVisualFormat
,
0
,
NULL
);
}
{
...
...
@@ -1038,10 +1038,10 @@ XID X11SalGraphics::GetXRenderPicture()
// TODO: avoid clip reset if already done
XRenderPictureAttributes
aAttr
;
aAttr
.
clip_mask
=
None
;
rRenderPeer
.
ChangePicture
(
m_aRenderPicture
,
CPClipMask
,
&
aAttr
);
rRenderPeer
.
ChangePicture
(
m_a
X
RenderPicture
,
CPClipMask
,
&
aAttr
);
}
return
m_aRenderPicture
;
return
m_a
X
RenderPicture
;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
...
...
@@ -1057,7 +1057,7 @@ SystemGraphicsData X11SalGraphics::GetGraphicsData() const
aRes
.
nScreen
=
m_nScreen
;
aRes
.
nDepth
=
GetDisplay
()
->
GetVisual
(
m_nScreen
).
GetDepth
();
aRes
.
aColormap
=
GetDisplay
()
->
GetColormap
(
m_nScreen
).
GetXColormap
();
aRes
.
p
RenderFormat
=
m_p
RenderFormat
;
aRes
.
p
XRenderFormat
=
m_pX
RenderFormat
;
return
aRes
;
}
...
...
vcl/unx/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -985,13 +985,13 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout )
return
;
// find a XRenderPictFormat compatible with the Drawable
XRenderPictFormat
*
pVisualFormat
=
static_cast
<
XRenderPictFormat
*>
(
GetXRenderFormat
()
);
XRenderPictFormat
*
pVisualFormat
=
GetXRenderFormat
(
);
if
(
!
pVisualFormat
)
{
Visual
*
pVisual
=
GetDisplay
()
->
GetVisual
(
m_nScreen
).
GetVisual
();
pVisualFormat
=
XRenderPeer
::
GetInstance
().
FindVisualFormat
(
pVisual
);
// cache the XRenderPictFormat
SetXRenderFormat
(
static_cast
<
void
*>
(
pVisualFormat
)
);
SetXRenderFormat
(
pVisualFormat
);
}
DBG_ASSERT
(
pVisualFormat
!=
NULL
,
"no matching XRenderPictFormat for text"
);
...
...
vcl/unx/source/gdi/salvd.cxx
Dosyayı görüntüle @
6a1ec8a0
...
...
@@ -68,7 +68,8 @@ SalVirtualDevice* X11SalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
}
nDX
=
(
long
)
w
;
nDY
=
(
long
)
h
;
if
(
!
pVDev
->
Init
(
GetX11SalData
()
->
GetDisplay
(),
nDX
,
nDY
,
nBitCount
,
nScreen
,
pData
->
hDrawable
,
pData
->
pRenderFormat
)
)
if
(
!
pVDev
->
Init
(
GetX11SalData
()
->
GetDisplay
(),
nDX
,
nDY
,
nBitCount
,
nScreen
,
pData
->
hDrawable
,
static_cast
<
XRenderPictFormat
*
>
(
pData
->
pXRenderFormat
))
)
{
delete
pVDev
;
return
NULL
;
...
...
@@ -136,7 +137,7 @@ BOOL X11SalVirtualDevice::Init( SalDisplay *pDisplay,
USHORT
nBitCount
,
int
nScreen
,
Pixmap
hDrawable
,
void
*
pRenderFormatVoid
)
XRenderPictFormat
*
pXRenderFormat
)
{
SalColormap
*
pColormap
=
NULL
;
bool
bDeleteColormap
=
false
;
...
...
@@ -144,11 +145,10 @@ BOOL X11SalVirtualDevice::Init( SalDisplay *pDisplay,
pDisplay_
=
pDisplay
;
pGraphics_
=
new
X11SalGraphics
();
m_nScreen
=
nScreen
;
if
(
pRenderFormatVoid
)
{
XRenderPictFormat
*
pRenderFormat
=
(
XRenderPictFormat
*
)
pRenderFormatVoid
;
pGraphics_
->
SetXRenderFormat
(
pRenderFormat
);
if
(
pRenderFormat
->
colormap
)
pColormap
=
new
SalColormap
(
pDisplay
,
pRenderFormat
->
colormap
,
m_nScreen
);
if
(
pXRenderFormat
)
{
pGraphics_
->
SetXRenderFormat
(
pXRenderFormat
);
if
(
pXRenderFormat
->
colormap
)
pColormap
=
new
SalColormap
(
pDisplay
,
pXRenderFormat
->
colormap
,
m_nScreen
);
else
pColormap
=
new
SalColormap
(
nBitCount
);
bDeleteColormap
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment