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
fa377a06
Kaydet (Commit)
fa377a06
authored
Kas 24, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
desktop: fix LOK_DEBUG rectangle painting
Change-Id: If023e409fad6fed8c0345a66ea48c1ed9924bff0
üst
81d9f1cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
init.cxx
desktop/source/lib/init.cxx
+13
-13
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
fa377a06
...
@@ -921,6 +921,19 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
...
@@ -921,6 +921,19 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
pDoc
->
paintTile
(
*
pDevice
.
get
(),
nCanvasWidth
,
nCanvasHeight
,
pDoc
->
paintTile
(
*
pDevice
.
get
(),
nCanvasWidth
,
nCanvasHeight
,
nTilePosX
,
nTilePosY
,
nTileWidth
,
nTileHeight
);
nTilePosX
,
nTilePosY
,
nTileWidth
,
nTileHeight
);
static
bool
bDebug
=
getenv
(
"LOK_DEBUG"
)
!=
nullptr
;
if
(
bDebug
)
{
// Draw a small red rectangle in the top left corner so that it's easy to see where a new tile begins.
Rectangle
aRect
(
0
,
0
,
5
,
5
);
aRect
=
pDevice
->
PixelToLogic
(
aRect
);
pDevice
->
Push
(
PushFlags
::
FILLCOLOR
|
PushFlags
::
LINECOLOR
);
pDevice
->
SetFillColor
(
COL_LIGHTRED
);
pDevice
->
SetLineColor
();
pDevice
->
DrawRect
(
aRect
);
pDevice
->
Pop
();
}
// Overwrite pBuffer's alpha channel with the separate alpha buffer.
// Overwrite pBuffer's alpha channel with the separate alpha buffer.
for
(
int
nRow
=
0
;
nRow
<
nCanvasHeight
;
++
nRow
)
for
(
int
nRow
=
0
;
nRow
<
nCanvasHeight
;
++
nRow
)
{
{
...
@@ -937,19 +950,6 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
...
@@ -937,19 +950,6 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
#endif
#endif
static
bool
bDebug
=
getenv
(
"LOK_DEBUG"
)
!=
nullptr
;
if
(
bDebug
)
{
// Draw a small red rectangle in the top left corner so that it's easy to see where a new tile begins.
Rectangle
aRect
(
0
,
0
,
5
,
5
);
aRect
=
pDevice
->
PixelToLogic
(
aRect
);
pDevice
->
Push
(
PushFlags
::
FILLCOLOR
|
PushFlags
::
LINECOLOR
);
pDevice
->
SetFillColor
(
COL_LIGHTRED
);
pDevice
->
SetLineColor
();
pDevice
->
DrawRect
(
aRect
);
pDevice
->
Pop
();
}
#else
#else
(
void
)
pBuffer
;
(
void
)
pBuffer
;
(
void
)
nCanvasWidth
;
(
void
)
nCanvasWidth
;
...
...
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