summaryrefslogtreecommitdiff
path: root/atari/browser_win.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-10-14 20:56:52 +0000
committerOle Loots <ole@monochrom.net>2011-10-14 20:56:52 +0000
commitee7b223ecac4db1e30e4b0fcbe08eababe9f51ff (patch)
tree327d72c4c9e184f9d1dde42959d792b23d2a107d /atari/browser_win.c
parentc69e75220da584284b58783e4c7a9e520776fc75 (diff)
downloadnetsurf-ee7b223ecac4db1e30e4b0fcbe08eababe9f51ff.tar.gz
netsurf-ee7b223ecac4db1e30e4b0fcbe08eababe9f51ff.tar.bz2
Draw favicon when iconyfied
svn path=/trunk/netsurf/; revision=13049
Diffstat (limited to 'atari/browser_win.c')
-rwxr-xr-xatari/browser_win.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/atari/browser_win.c b/atari/browser_win.c
index 1423e69e4..b09164c42 100755
--- a/atari/browser_win.c
+++ b/atari/browser_win.c
@@ -342,9 +342,8 @@ int window_destroy( struct gui_window * gw)
if( input_window == gw )
input_window = NULL;
- window_set_icon( gw, NULL );
-
if( gw->root ) {
+ window_set_icon( gw, NULL );
if( gw->root->toolbar )
tb_destroy( gw->root->toolbar );
@@ -405,11 +404,12 @@ void window_open( struct gui_window * gw)
void window_set_icon(struct gui_window * gw, struct bitmap * bmp )
-{
+{
+ /*
if( gw->icon != NULL ){
bitmap_destroy( gw->icon );
gw->icon = NULL;
- }
+ }*/
gw->icon = bmp;
}
@@ -634,7 +634,7 @@ static void __CDECL evnt_window_newtop( WINDOW *win, short buff[8], void *data )
LOG(("newtop: iw: %p, win: %p", input_window, win ));
assert( input_window != NULL );
- window_redraw_controls(input_window, 0);
+ /* window_redraw_controls(input_window, 0); */
}
static void __CDECL evnt_window_shaded( WINDOW *win, short buff[8], void *data )
@@ -652,7 +652,7 @@ static void __CDECL evnt_window_icondraw( WINDOW *win, short buff[8], void * dat
short x,y,w,h;
struct gui_window * gw = (struct gui_window*)data;
- LOG((""));
+ LOG((""));
WindClear( win);
WindGet( win, WF_WORKXYWH, &x, &y, &w, &h);
@@ -669,7 +669,12 @@ static void __CDECL evnt_window_icondraw( WINDOW *win, short buff[8], void * dat
plotter->move( plotter, x, y );
plotter->resize( plotter, w, h );
plotter->clip(plotter, &clip );
- plotter->bitmap( plotter, gw->icon, 0, 0, 0xffffff, BITMAPF_NONE );
+ plotter->bitmap_resize( plotter, gw->icon, w, h );
+ plotter->bitmap(
+ plotter,
+ ( gw->icon->resized ) ? gw->icon->resized : gw->icon,
+ 0, 0, 0xffffff, BITMAPF_NONE
+ );
}
}