Removed unnecessary if statement

This commit is contained in:
loki 2020-01-12 01:00:43 +01:00
parent 1cd5572020
commit c5ee7fd008

View File

@ -227,9 +227,7 @@ struct shm_attr_t : public x11_attr_t {
}
if(img->width != display->width_in_pixels || img->height != display->height_in_pixels) {
if(img->data) {
delete[] img->data;
}
img->data = new std::uint8_t[frame_size()];
img->width = display->width_in_pixels;