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
91968498
Kaydet (Commit)
91968498
authored
Haz 17, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixing the joy of MSVC preprocessor
Change-Id: I4e97f93de568b1704a58ab5e5c47e85e09327779
üst
3d9e3cd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
salbmp.cxx
vcl/win/source/gdi/salbmp.cxx
+2
-2
No files found.
vcl/win/source/gdi/salbmp.cxx
Dosyayı görüntüle @
91968498
...
...
@@ -808,7 +808,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const
if
(
nColors
)
{
// copy the palette entries if any
const
sal_uInt16
nMinCount
=
std
::
min
(
nColors
,
rPal
.
GetEntryCount
()
);
const
sal_uInt16
nMinCount
=
(
std
::
min
)
(
nColors
,
rPal
.
GetEntryCount
()
);
if
(
nMinCount
)
memcpy
(
pBI
->
bmiColors
,
rPal
.
ImplGetColorBuffer
(),
nMinCount
*
sizeof
(
RGBQUAD
)
);
}
...
...
@@ -976,7 +976,7 @@ void WinSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
PBITMAPINFO
pBI
=
(
PBITMAPINFO
)
GlobalLock
(
mhDIB
);
const
sal_uInt16
nCount
=
pBuffer
->
maPalette
.
GetEntryCount
();
const
sal_uInt16
nDIBColorCount
=
ImplGetDIBColorCount
(
mhDIB
);
memcpy
(
pBI
->
bmiColors
,
pBuffer
->
maPalette
.
ImplGetColorBuffer
(),
std
::
min
(
nDIBColorCount
,
nCount
)
*
sizeof
(
RGBQUAD
)
);
memcpy
(
pBI
->
bmiColors
,
pBuffer
->
maPalette
.
ImplGetColorBuffer
(),
(
std
::
min
)
(
nDIBColorCount
,
nCount
)
*
sizeof
(
RGBQUAD
)
);
GlobalUnlock
(
mhDIB
);
}
...
...
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