Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Gallery2
Commits
8d8cdf7f
Commit
8d8cdf7f
authored
12 years ago
by
nicolasroard
Browse files
Options
Download
Email Patches
Plain Diff
Fix colors in rotate and mirror
bug:7419025 Change-Id: Icf92de032f62f93a3ac57e042ea582c760d9f600
parent
8b3ce9b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/com/android/gallery3d/filtershow/imageshow/ImageGeometry.java
...android/gallery3d/filtershow/imageshow/ImageGeometry.java
+2
-2
src/com/android/gallery3d/filtershow/imageshow/ImageShow.java
...com/android/gallery3d/filtershow/imageshow/ImageShow.java
+4
-0
No files found.
src/com/android/gallery3d/filtershow/imageshow/ImageGeometry.java
View file @
8d8cdf7f
...
...
@@ -494,7 +494,7 @@ public abstract class ImageGeometry extends ImageSlave {
paint
.
setStyle
(
Style
.
STROKE
);
paint
.
setStrokeWidth
(
2
);
drawCropSafe
(
canvas
,
paint
);
paint
.
set
ARGB
(
128
,
0
,
0
,
0
);
paint
.
set
Color
(
getDefaultBackgroundColor
()
);
paint
.
setStyle
(
Paint
.
Style
.
FILL
);
drawShadows
(
canvas
,
paint
,
unrotatedCropBounds
());
}
...
...
@@ -614,7 +614,7 @@ public abstract class ImageGeometry extends ImageSlave {
canvas
.
drawBitmap
(
photo
,
m1
,
p
);
canvas
.
restore
();
p
.
set
ARGB
(
255
,
0
,
0
,
0
);
p
.
set
Color
(
getDefaultBackgroundColor
()
);
p
.
setStyle
(
Paint
.
Style
.
FILL
);
scaledCrop
.
offset
(
displayCenter
[
0
]
-
scaledCrop
.
centerX
(),
displayCenter
[
1
]
-
scaledCrop
.
centerY
());
...
...
This diff is collapsed.
Click to expand it.
src/com/android/gallery3d/filtershow/imageshow/ImageShow.java
View file @
8d8cdf7f
...
...
@@ -125,6 +125,10 @@ public class ImageShow extends View implements OnGestureListener,
mBackgroundColor
=
value
;
}
public
int
getDefaultBackgroundColor
()
{
return
mBackgroundColor
;
}
public
static
void
setTextSize
(
int
value
)
{
mTextSize
=
value
;
}
...
...
This diff is collapsed.
Click to expand it.
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