OSX: Temporary bodge for WindowQuartzSubdriver::SetPortAlphaOpaque issue

This commit is contained in:
Jonathan G Rennison
2021-01-02 20:11:50 +00:00
parent f2c492c351
commit 343777e749

View File

@@ -507,6 +507,8 @@ void WindowQuartzSubdriver::SetPortAlphaOpaque()
uint32 *pixels = (uint32*)this->window_buffer; uint32 *pixels = (uint32*)this->window_buffer;
uint32 pitch = this->window_width; uint32 pitch = this->window_width;
if (pixels == nullptr) return;
for (int y = 0; y < this->window_height; y++) for (int y = 0; y < this->window_height; y++)
for (int x = 0; x < this->window_width; x++) { for (int x = 0; x < this->window_width; x++) {
pixels[y * pitch + x] |= 0xFF000000; pixels[y * pitch + x] |= 0xFF000000;