Fix compile time warning on enum compare

This commit is contained in:
bolt 2020-04-09 15:07:29 +02:00
parent a4a2c88ed7
commit 5670c82b0d
1 changed files with 1 additions and 1 deletions

View File

@ -1874,7 +1874,7 @@ static void update_display_static(driver_base *drv)
// Check for first column from left and first column from right that have changed
if (high) {
if (VIDEO_MODE_DEPTH < VIDEO_DEPTH_8BIT) {
if ((int)VIDEO_MODE_DEPTH < VIDEO_DEPTH_8BIT) {
const int src_bytes_per_row = bytes_per_row;
const int dst_bytes_per_row = drv->s->pitch;
const int pixels_per_byte = VIDEO_MODE_X / src_bytes_per_row;