Skip to content

Commit 9699a1e

Browse files
committed
mix format
1 parent e0915c4 commit 9699a1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/scenic/assets/stream/bitmap.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,28 +284,28 @@ defmodule Scenic.Assets.Stream.Bitmap do
284284
def put_offset(mutable, offset, color)
285285

286286
def put_offset({@mutable, {w, h, :g}, p}, offset, color) when is_integer(offset) do
287-
if offset > w * h, do: raise "Offset is out of bounds"
287+
if offset > w * h, do: raise("Offset is out of bounds")
288288
{:color_g, g} = Color.to_g(color)
289289
nif_put(p, offset, g)
290290
{@mutable, {w, h, :g}, p}
291291
end
292292

293293
def put_offset({@mutable, {w, h, :ga}, p}, offset, color) when is_integer(offset) do
294-
if offset > w * h, do: raise "Offset is out of bounds"
294+
if offset > w * h, do: raise("Offset is out of bounds")
295295
{:color_ga, {g, a}} = Color.to_ga(color)
296296
nif_put(p, offset, g, a)
297297
{@mutable, {w, h, :ga}, p}
298298
end
299299

300300
def put_offset({@mutable, {w, h, :rgb}, p}, offset, color) when is_integer(offset) do
301-
if offset > w * h, do: raise "Offset is out of bounds"
301+
if offset > w * h, do: raise("Offset is out of bounds")
302302
{:color_rgb, {r, g, b}} = Color.to_rgb(color)
303303
nif_put(p, offset, r, g, b)
304304
{@mutable, {w, h, :rgb}, p}
305305
end
306306

307307
def put_offset({@mutable, {w, h, :rgba}, p}, offset, color) when is_integer(offset) do
308-
if offset > w * h, do: raise "Offset is out of bounds"
308+
if offset > w * h, do: raise("Offset is out of bounds")
309309
{:color_rgba, {r, g, b, a}} = Color.to_rgba(color)
310310
nif_put(p, offset, r, g, b, a)
311311
{@mutable, {w, h, :rgba}, p}

0 commit comments

Comments
 (0)