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
62bf8e2f
Kaydet (Commit)
62bf8e2f
authored
Eki 08, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Store the image bitmaps in MyWorkWindow in the OpenGL case
Change-Id: I1acac06f076a4f8173929a0fe0c0d9eaf6b8d1ff
üst
9df8d2a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
icontest.cxx
vcl/workben/icontest.cxx
+3
-12
No files found.
vcl/workben/icontest.cxx
Dosyayı görüntüle @
62bf8e2f
...
@@ -45,6 +45,8 @@ public:
...
@@ -45,6 +45,8 @@ public:
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
virtual
void
Paint
(
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Paint
(
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
std
::
vector
<
Bitmap
*>
maBitmaps
;
};
};
MyWorkWindow
::
MyWorkWindow
(
const
char
*
kind
,
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
)
:
MyWorkWindow
::
MyWorkWindow
(
const
char
*
kind
,
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
)
:
...
@@ -251,8 +253,6 @@ void IconTestApp::DoItWithOpenGL(std::vector<OUString>& aImageFiles)
...
@@ -251,8 +253,6 @@ void IconTestApp::DoItWithOpenGL(std::vector<OUString>& aImageFiles)
pWindow
->
SetText
(
OUString
(
"OpenGL Image Test"
));
pWindow
->
SetText
(
OUString
(
"OpenGL Image Test"
));
Point
aPos
(
10
,
10
);
for
(
std
::
vector
<
OUString
>::
const_iterator
i
=
aImageFiles
.
cbegin
();
i
!=
aImageFiles
.
end
();
++
i
)
for
(
std
::
vector
<
OUString
>::
const_iterator
i
=
aImageFiles
.
cbegin
();
i
!=
aImageFiles
.
end
();
++
i
)
{
{
SvFileStream
aFileStream
(
*
i
,
STREAM_READ
);
SvFileStream
aFileStream
(
*
i
,
STREAM_READ
);
...
@@ -261,16 +261,7 @@ void IconTestApp::DoItWithOpenGL(std::vector<OUString>& aImageFiles)
...
@@ -261,16 +261,7 @@ void IconTestApp::DoItWithOpenGL(std::vector<OUString>& aImageFiles)
if
(
aGraphicFilter
.
ImportGraphic
(
aGraphic
,
*
i
,
aFileStream
)
!=
0
)
if
(
aGraphicFilter
.
ImportGraphic
(
aGraphic
,
*
i
,
aFileStream
)
!=
0
)
continue
;
continue
;
SAL_INFO
(
"vcl.icontest"
,
*
i
<<
": size: "
<<
aGraphic
.
GetSizeBytes
()
<<
"B, "
<<
aGraphic
.
GetSizePixel
());
SAL_INFO
(
"vcl.icontest"
,
*
i
<<
": size: "
<<
aGraphic
.
GetSizeBytes
()
<<
"B, "
<<
aGraphic
.
GetSizePixel
());
Size
aSize
(
100
,
100
);
pWindow
->
maBitmaps
.
push_back
(
new
Bitmap
(
aGraphic
.
GetBitmap
(
)
)
);
// Bitmap *pBitmap = new Bitmap( aGraphic.GetBitmap( ) );
aPos
.
Move
(
aSize
.
Width
()
+
10
,
0
);
if
(
aPos
.
X
()
>
800
)
{
aPos
.
setX
(
10
);
aPos
.
setY
(
aPos
.
Y
()
+
aSize
.
Height
()
+
10
);
}
}
}
pWindow
->
Hide
();
pWindow
->
Hide
();
...
...
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