Skip to content

Commit

Permalink
Fix order of args in TestDriver.
Browse files Browse the repository at this point in the history
  • Loading branch information
crertel committed Apr 26, 2022
1 parent b27c978 commit ff35fda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/scenic/driver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ defmodule Scenic.Driver do
This callback is optional.
"""
@callback take_screenshot(driver :: Driver.t()) ::
{:ok, :not_supported} | {:ok, screenshot_t, Driver.t()}
{:ok, :not_supported, Driver.t()} | {:ok, screenshot_t, Driver.t()}

@optional_callbacks reset_scene: 1,
request_input: 2,
Expand Down
2 changes: 1 addition & 1 deletion test/scenic/view_port_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ defmodule Scenic.ViewPortTest do
def request_input(_input, driver), do: {:ok, driver}
def reset_scene(driver), do: {:ok, driver}
def clear_color(_color, driver), do: {:ok, driver}
def take_screenshot(driver), do: {:ok, driver, {1, 1, :rgba, <<0x00, 0x00, 0x00, 0xFF>>}}
def take_screenshot(driver), do: {:ok, {1, 1, :rgba, <<0x00, 0x00, 0x00, 0xFF>>}, driver}

def handle_info(_, driver), do: {:noreply, driver}
def handle_cast(_, driver), do: {:noreply, driver}
Expand Down

0 comments on commit ff35fda

Please sign in to comment.