This commit is contained in:
Jorijn van der Graaf 2025-05-03 06:51:33 +02:00
commit 98b775e33e
21 changed files with 361 additions and 5541 deletions

View file

@ -23,7 +23,6 @@ module;
#include <time.h>
#include <unistd.h>
#include <print>
#include "cat.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@ -261,7 +260,7 @@ WindowWayland::WindowWayland(std::string name, std::uint32_t width, std::uint32_
}
// Map the shared memory file
shm_data = reinterpret_cast<Pixel*>(mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0));
shm_data = reinterpret_cast<Pixel_RU8_GU8_BU8_AU8*>(mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0));
if (shm_data == MAP_FAILED) {
fprintf(stderr, "mmap failed: %m\n");
close(fd);