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

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 // Check for first column from left and first column from right that have changed
if (high) { 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 src_bytes_per_row = bytes_per_row;
const int dst_bytes_per_row = drv->s->pitch; const int dst_bytes_per_row = drv->s->pitch;
const int pixels_per_byte = VIDEO_MODE_X / src_bytes_per_row; const int pixels_per_byte = VIDEO_MODE_X / src_bytes_per_row;