Skip to content

Commit 31020db

Browse files
committed
Update dereference pointer before calling new_full
Notes: 1. This is likely from the change here: ev3dev/grx@28b0686#diff-02a99699ea96689f62c694983532fedec8e3b84b46ccc23d10f1ced786c82473L329 where grx is updated to take a uint8[] instead of a uint8*[] for Context? new(); the commit mentions that this is a breaking change that removes support for the unused planar memory objects.
1 parent e05a1de commit 31020db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/Screen.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ namespace Ev3devKit.Ui {
174174
if (context_mem_addr == null)
175175
context = Context.new_full (mode, width, height);
176176
else {
177-
uint8* addr[4];
178-
addr[0] = context_mem_addr;
177+
uint8 addr[4];
178+
addr[0] = *context_mem_addr;
179179
context = Context.new_full (mode, width, height, addr);
180180
}
181181
}

0 commit comments

Comments
 (0)