diff --git a/src/sysres/incoreres.c b/src/sysres/incoreres.c index f3097e1e..22114aed 100644 --- a/src/sysres/incoreres.c +++ b/src/sysres/incoreres.c @@ -138,17 +138,12 @@ HCURSOR __mg_load_cursor_from_res (int i) if (is_png) { size_t size; - if (i == 0) { - size = __mg_cursors_offset [1] - __mg_cursors_offset [0]; - } - else { - /* For LoadCursorFromPNGMem, the array of offsets - * must have NR_CURSORS + 1 units. */ - size = __mg_cursors_offset [i + 1] - __mg_cursors_offset [i]; - } + /* For LoadCursorFromPNGMem, the array of offsets + * must have NR_CURSORS + 1 units. */ + size = __mg_cursors_offset [i + 1] - __mg_cursors_offset [i]; - hCursor = LoadCursorFromPNGMem (__mg_cursors_data + __mg_cursors_offset [i], - size, hotspot[0], hotspot[1]); + hCursor = LoadCursorFromPNGMem (__mg_cursors_data + + __mg_cursors_offset [i], size, hotspot[0], hotspot[1]); } else # endif