[project @ 2004-09-01 16:48:25 by rjw]
Fix for previous stupidity. svn path=/import/netsurf/; revision=1260
This commit is contained in:
parent
13ae21f22b
commit
fceba6cbc6
|
@ -353,10 +353,10 @@ static int gif_initialise_sprite(struct gif_animation *gif, unsigned int width,
|
|||
|
||||
/* Allocate some more memory
|
||||
*/
|
||||
if (gif->frame_image->size != frame_bytes);
|
||||
if ((buffer = (osspriteop_area *)realloc(gif->frame_image, frame_bytes)) == NULL) {
|
||||
return GIF_INSUFFICIENT_MEMORY;
|
||||
}
|
||||
gif->frame_image = buffer;
|
||||
|
||||
/* Update the sizes
|
||||
*/
|
||||
|
|
|
@ -259,7 +259,7 @@ bool ro_gui_get_icon_selected_state(wimp_w w, wimp_i i) {
|
|||
*/
|
||||
void ro_gui_set_icon_shaded_state(wimp_w w, wimp_i i, bool state) {
|
||||
os_error *error;
|
||||
if (ro_gui_get_icon_selected_state(w, i) == state) return;
|
||||
if (ro_gui_get_icon_shaded_state(w, i) == state) return;
|
||||
error = xwimp_set_icon_state(w, i,
|
||||
(state ? wimp_ICON_SHADED : 0), wimp_ICON_SHADED);
|
||||
if (error) {
|
||||
|
|
Loading…
Reference in New Issue