remove bad code

This commit is contained in:
Vincent Wei
2020-02-25 23:44:39 +08:00
parent 20f44981dd
commit 882bc9d821
+5 -10
View File
@@ -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