mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
remove bad code
This commit is contained in:
+5
-10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user