intermediate #1
@@ -22,7 +22,7 @@ pub const ExampleElement = packed struct {
|
|||||||
_ = ctx;
|
_ = ctx;
|
||||||
std.debug.assert(cells.len == @as(usize, size.cols) * @as(usize, size.rows));
|
std.debug.assert(cells.len == @as(usize, size.cols) * @as(usize, size.rows));
|
||||||
|
|
||||||
// NOTE: error should only be returned here in case an in-recoverable exception has occured
|
// NOTE: error should only be returned here in case an in-recoverable exception has occurred
|
||||||
const row = size.rows / 2;
|
const row = size.rows / 2;
|
||||||
const col = size.cols / 2 -| 3;
|
const col = size.cols / 2 -| 3;
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ pub const HelloWorldText = packed struct {
|
|||||||
const this: *@This() = @ptrCast(@alignCast(ctx));
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
std.debug.assert(cells.len == @as(usize, size.cols) * @as(usize, size.rows));
|
std.debug.assert(cells.len == @as(usize, size.cols) * @as(usize, size.rows));
|
||||||
|
|
||||||
// NOTE: error should only be returned here in case an in-recoverable exception has occured
|
// NOTE: error should only be returned here in case an in-recoverable exception has occurred
|
||||||
const row = size.rows / 2;
|
const row = size.rows / 2;
|
||||||
const col = size.cols / 2 -| (text.len / 2);
|
const col = size.cols / 2 -| (text.len / 2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user