Initial bw scale comes from core.

This commit is contained in:
Michael Drake 2014-10-25 15:43:41 +01:00
parent a96ba0369c
commit c4829ca636
2 changed files with 6 additions and 8 deletions

View File

@ -91,7 +91,7 @@ struct s_focus_info
#define CDT_ICON 0x04UL
#define CDT_ICON_TYPE 0x05UL
# define CDT_ICON_TYPE_NONE 0x00UL
# define CDT_ICON_TYPE_OBJECT 0x01UL
# define CDT_ICON_TYPE_OBJECT 0x01UL
# define CDT_ICON_TYPE_BITMAP 0x02UL
@ -127,9 +127,9 @@ struct s_gui_win_root
};
typedef struct s_gui_win_root ROOTWIN;
struct s_browser
{
struct browser_window * bw;
struct s_browser
{
struct browser_window * bw;
bool attached;
};
@ -147,6 +147,7 @@ struct gui_window {
char * status;
char * title;
char * url;
float scale;
struct bitmap * icon;
struct s_caret caret;
struct s_search_form_session *search;

View File

@ -286,10 +286,7 @@ int window_create(struct gui_window * gw,
assert(gw->browser);
gw->browser->bw = bw;
if(existing)
gw->browser->bw->scale = existing->browser->bw->scale;
else
gw->browser->bw->scale = 1;
gw->scale = browser_window_get_scale(bw);
/* create statusbar component: */