summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/colors.c6
-rw-r--r--src/form.cc3
-rw-r--r--src/uicmd.cc3
-rw-r--r--src/uicmd.hh3
4 files changed, 9 insertions, 6 deletions
diff --git a/src/colors.c b/src/colors.c
index 6a684dde..90c738c4 100644
--- a/src/colors.c
+++ b/src/colors.c
@@ -221,9 +221,9 @@ static int32_t Color_parse_hex (const char *s, int32_t default_color, int *err)
*err = 0;
else if (tail - s == 3) { /* #RGB as allowed by CSS */
*err = 0;
- ret_color = ((ret_color & 0xf00) << 12) | ((ret_color & 0xf00) << 8) |
- ((ret_color & 0x0f0) << 8) | ((ret_color & 0x0f0) << 4) |
- ((ret_color & 0x00f) << 4) | ((ret_color & 0x00f) << 0);
+ ret_color = ((ret_color & 0xf00) << 12) | ((ret_color & 0xf00) << 8) |
+ ((ret_color & 0x0f0) << 8) | ((ret_color & 0x0f0) << 4) |
+ ((ret_color & 0x00f) << 4) | ((ret_color & 0x00f) << 0);
} else
ret_color = default_color;
diff --git a/src/form.cc b/src/form.cc
index 452b524e..751f5143 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -199,7 +199,8 @@ DilloHtmlForm *a_Html_form_new (DilloHtml *html, DilloHtmlMethod method,
DilloHtmlEnc content_type, const char *charset,
bool enabled)
{
- return new DilloHtmlForm (html, method, action, content_type, charset, enabled);
+ return new DilloHtmlForm (html, method, action, content_type, charset,
+ enabled);
}
void a_Html_form_delete (DilloHtmlForm *form)
diff --git a/src/uicmd.cc b/src/uicmd.cc
index e3465e92..c832eb85 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -389,7 +389,8 @@ void a_UIcmd_send_event_to_tabs_by_wid(int e, void *v_wid)
* Create a new UI and its associated BrowserWindow data structure.
* Use style from v_ui. If non-NULL it must be of type UI*.
*/
-BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh, uint32_t xid, const void *vbw)
+BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh,
+ uint32_t xid, const void *vbw)
{
BrowserWindow *old_bw = (BrowserWindow*)vbw;
BrowserWindow *new_bw = NULL;
diff --git a/src/uicmd.hh b/src/uicmd.hh
index 282f1b8b..40779403 100644
--- a/src/uicmd.hh
+++ b/src/uicmd.hh
@@ -8,7 +8,8 @@ extern "C" {
#endif /* __cplusplus */
-BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh, uint32_t xid, const void *v_bw);
+BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh,
+ uint32_t xid, const void *v_bw);
BrowserWindow *a_UIcmd_get_bw_by_widget(void *v_wid);
void a_UIcmd_send_event_to_tabs_by_wid(int e, void *v_wid);
void a_UIcmd_open_urlstr(void *vbw, const char *urlstr);