Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/adamdruppe/arsd
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdruppe committed Sep 22, 2024
2 parents 80caee2 + a9a9d75 commit 22efb59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/upstream/arsd/simpledisplay.d
Original file line number Diff line number Diff line change
Expand Up @@ -18582,7 +18582,7 @@ version(OSXCocoa) {

final:

void convertToRgbaBytes(ubyte[] where) {
void convertToRgbaBytes(ubyte[] where) @system {
assert(where.length == this.width * this.height * 4);

// if rawData had a length....
Expand All @@ -18604,7 +18604,7 @@ version(OSXCocoa) {
}
}

void setFromRgbaBytes(in ubyte[] where) {
void setFromRgbaBytes(in ubyte[] where) @system {
// FIXME: this is probably wrong
assert(where.length == this.width * this.height * 4);

Expand Down Expand Up @@ -18642,7 +18642,7 @@ version(OSXCocoa) {
CGContextRelease(context);
}

void setPixel(int x, int y, Color c) {
void setPixel(int x, int y, Color c) @system {
auto offset = (y * width + x) * 4;
if (c.a == 255) {
rawData[offset + 0] = c.r;
Expand Down

0 comments on commit 22efb59

Please sign in to comment.