void memory_image::set_pixel(pos_t x, pos_t y, color &c) { if (!(x < get_width())) { return; } if (!(y < get_height())) { return; } c.write(this->colors + get_offset(x, y)); }