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
35412949
Kaydet (Commit)
35412949
authored
Agu 28, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
keep nScanlineStride number sane
bff + valgrind Change-Id: I255a052251a6a0f1e4005b9cfb3b6ce00c6653ee
üst
80748411
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
bitmapdevice.cxx
basebmp/source/bitmapdevice.cxx
+8
-5
No files found.
basebmp/source/bitmapdevice.cxx
Dosyayı görüntüle @
35412949
...
@@ -1952,12 +1952,15 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
...
@@ -1952,12 +1952,15 @@ BitmapDeviceSharedPtr createBitmapDeviceImplInner( const basegfx::B2IVector&
nScanlineFormat
>
FORMAT_MAX
)
nScanlineFormat
>
FORMAT_MAX
)
return
BitmapDeviceSharedPtr
();
return
BitmapDeviceSharedPtr
();
sal_uInt8
nBitsPerPixel
=
bitsPerPixel
[
nScanlineFormat
];
if
(
rSize
.
getX
()
>
(
SAL_MAX_INT32
-
7
)
/
nBitsPerPixel
)
sal_Int32
nScanlineStride
(
0
);
{
SAL_WARN
(
"basebmp"
,
"suspicious bitmap width "
<<
rSize
.
getX
()
<<
" for depth "
<<
nBitsPerPixel
);
return
BitmapDeviceSharedPtr
();
}
// round up to full 8 bit, divide by 8
// round up to full 8 bit, divide by 8
nScanlineStride
=
(
rSize
.
getX
()
*
bitsPerPixel
[
nScanlineFormat
]
+
7
)
>>
3
;
sal_Int32
nScanlineStride
=
(
rSize
.
getX
()
*
nBitsPerPixel
+
7
)
>>
3
;
// rounded up to next full power-of-two number of bytes
// rounded up to next full power-of-two number of bytes
const
sal_uInt32
bytesPerPixel
=
nextPow2
(
const
sal_uInt32
bytesPerPixel
=
nextPow2
(
...
...
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