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
48610630
Kaydet (Commit)
48610630
authored
Eki 28, 2013
tarafından
Ptyl Dragon
Kaydeden (comit)
Jan Holesovsky
Kas 15, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
for tor
Change-Id: I1565450c763e4f0bf1a724978b5550163d627482
üst
3ea4d268
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
MLOTestingTileParametersViewController.m
...rs/testing_tiles/MLOTestingTileParametersViewController.m
+6
-6
viewsh.cxx
sw/source/core/view/viewsh.cxx
+4
-4
No files found.
ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.m
Dosyayı görüntüle @
48610630
...
...
@@ -39,12 +39,12 @@ static const CGFloat RENDER_BUTTON_HEIGHT = 50.0f;
}
-
(
void
)
initParams
{
self
.
params
=
@[[
self
createParam
:
@"contextWidth"
extractor
:
^
(
CGFloat
value
)
{
self
.
contextWidth
=
value
;}
value
:
3
00
],
[
self
createParam
:
@"contextHeight"
extractor
:
^
(
CGFloat
value
){
self
.
contextHeight
=
value
;}
value
:
3
00
],
[
self
createParam
:
@"tilePosX"
extractor
:
^
(
CGFloat
value
){
self
.
tilePosX
=
value
;}
value
:
0
],
[
self
createParam
:
@"tilePosY"
extractor
:
^
(
CGFloat
value
){
self
.
tilePosY
=
value
;}
value
:
0
],
[
self
createParam
:
@"tileWidth"
extractor
:
^
(
CGFloat
value
){
self
.
tileWidth
=
value
;}
value
:
3
00
],
[
self
createParam
:
@"tileHeight"
extractor
:
^
(
CGFloat
value
){
self
.
tileHeight
=
value
;}
value
:
3
00
]
self
.
params
=
@[[
self
createParam
:
@"contextWidth"
extractor
:
^
(
CGFloat
value
)
{
self
.
contextWidth
=
value
;}
value
:
6
00
],
[
self
createParam
:
@"contextHeight"
extractor
:
^
(
CGFloat
value
){
self
.
contextHeight
=
value
;}
value
:
6
00
],
[
self
createParam
:
@"tilePosX"
extractor
:
^
(
CGFloat
value
){
self
.
tilePosX
=
value
;}
value
:
60
0
],
[
self
createParam
:
@"tilePosY"
extractor
:
^
(
CGFloat
value
){
self
.
tilePosY
=
value
;}
value
:
60
0
],
[
self
createParam
:
@"tileWidth"
extractor
:
^
(
CGFloat
value
){
self
.
tileWidth
=
value
;}
value
:
10
00
],
[
self
createParam
:
@"tileHeight"
extractor
:
^
(
CGFloat
value
){
self
.
tileHeight
=
value
;}
value
:
10
00
]
];
}
...
...
sw/source/core/view/viewsh.cxx
Dosyayı görüntüle @
48610630
...
...
@@ -1790,15 +1790,15 @@ void touch_lo_draw_tile(void * context, int contextWidth, int contextHeight, int
MapMode
aMapMode
(
aDevice
.
GetMapMode
());
aMapMode
.
SetMapUnit
(
MAP_TWIP
);
aMapMode
.
SetOrigin
(
Point
(
-
tilePosX
,
-
tilePosY
));
// scaling
Fraction
scaleX
(
contextWidth
,
tile
Width
);
Fraction
scaleY
(
contextHeight
,
tile
Height
);
// scaling
Fraction
scaleX
(
tileWidth
,
context
Width
);
Fraction
scaleY
(
tileHeight
,
context
Height
);
aMapMode
.
SetScaleX
(
scaleX
);
aMapMode
.
SetScaleY
(
scaleY
);
aDevice
.
SetMapMode
(
aMapMode
);
// resizes the virtual device so to contain the entrie context
aDevice
.
SetOutputSizePixel
(
Size
(
contextWidth
,
contextHeight
));
// draw
// draw
- works in logic coordinates
pViewShell
->
PaintTile
(
&
aDevice
,
Rectangle
(
Point
(
tilePosX
,
tilePosY
),
Size
(
tileWidth
,
tileHeight
)));
// copy the aDevice content to mpImage
Bitmap
aBitmap
(
aDevice
.
GetBitmap
(
aDevice
.
PixelToLogic
(
Point
(
0
,
0
)),
aDevice
.
PixelToLogic
(
Size
(
contextWidth
,
contextHeight
))));
...
...
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