Skip to content

Commit 69023b0

Browse files
committed
android: reuse shared icon scale constant
1 parent e91587b commit 69023b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/me/rosuh/easywatermark/render/WatermarkRenderer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ object WatermarkRenderer {
202202
// S3a: `textSize` is the icon scale ratio (textSize/14 ⇒ 14 = 1×), preserved from legacy.
203203
// The old preview-matrix `imageInfo.scaleX` factor (applied only at export, `scale=true`) is
204204
// REMOVED so preview and export size icons identically and independent of view scale (D2c).
205-
val scaleRatio = config.textSize / 14f
205+
val scaleRatio = config.textSize / WatermarkCellComposer.ICON_SCALE_REFERENCE_TEXT_SIZE
206206

207207
val targetBitmap = Bitmap.createBitmap(
208208
(finalWidth * scaleRatio).toInt(),

0 commit comments

Comments
 (0)