Skip to content

Commit 289799b

Browse files
author
izaak
committed
Fix linting errors
1 parent a1d598f commit 289799b

File tree

1 file changed

+3
-3
lines changed
  • app/src/main/java/co/stonephone/stonecamera/plugins

1 file changed

+3
-3
lines changed

app/src/main/java/co/stonephone/stonecamera/plugins/Portrait.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class PortraitModePlugin : IPlugin {
178178
val dv = IntArray(256 * div)
179179
i = 0
180180
while (i < 256 * div) {
181-
dv[i] = (i / div)
181+
dv[i] = i / div
182182
i++
183183
}
184184

@@ -210,8 +210,8 @@ class PortraitModePlugin : IPlugin {
210210
p1 = pix[yw + vmin[x]]
211211
p2 = pix[yw + vmax[x]]
212212

213-
rsum += ((p1 and 0xff0000) - (p2 and 0xff0000)) shr 16
214-
gsum += ((p1 and 0x00ff00) - (p2 and 0x00ff00)) shr 8
213+
rsum += (p1 and 0xff0000) - (p2 and 0xff0000) shr 16
214+
gsum += (p1 and 0x00ff00) - (p2 and 0x00ff00) shr 8
215215
bsum += (p1 and 0x0000ff) - (p2 and 0x0000ff)
216216
yi++
217217
x++

0 commit comments

Comments
 (0)