Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/01485d06baf0098c2f0ec3ac48ea49150e550de9
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/01485d06baf0098c2f0ec3ac48ea49150e550de9
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/01485d06baf0098c2f0ec3ac48ea49150e550de9

The branch, master has been updated
       via  01485d06baf0098c2f0ec3ac48ea49150e550de9 (commit)
       via  342b65fd76de0b26cda3fecf2140b547b5e11b2e (commit)
      from  11ecf0b6712d1817beef9a5907f462adf89c3d33 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=01485d06baf0098c2f0ec3ac48ea49150e550de9
commit 01485d06baf0098c2f0ec3ac48ea49150e550de9
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    RISC OS: Core window: X scroll is positive, Y scroll is negative.

diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c
index fd0e50a..a544352 100644
--- a/frontends/riscos/corewindow.c
+++ b/frontends/riscos/corewindow.c
@@ -847,8 +847,8 @@ ro_cw_get_scroll(struct core_window *cw, int *x, int *y)
                return NSERROR_INVALID;
        }
 
-       *x = state.xscroll / 2;
-       *y = state.yscroll / 2;
+       *x =  state.xscroll / 2;
+       *y = -state.yscroll / 2;
        return NSERROR_OK;
 }
 
@@ -872,7 +872,7 @@ ro_cw_set_scroll(struct core_window *cw, int x, int y)
                return NSERROR_INVALID;
        }
 
-       state.xscroll = -x * 2;
+       state.xscroll =  x * 2;
        state.yscroll = -y * 2;
 
        ro_cw_open(PTR_WIMP_OPEN(&state));


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=342b65fd76de0b26cda3fecf2140b547b5e11b2e
commit 342b65fd76de0b26cda3fecf2140b547b5e11b2e
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Corewindow helper: Add documentation for cw_helper_scroll_visible()

diff --git a/desktop/cw_helper.h b/desktop/cw_helper.h
index 83a85c1..14e6993 100644
--- a/desktop/cw_helper.h
+++ b/desktop/cw_helper.h
@@ -29,7 +29,14 @@ struct rect;
 struct core_window;
 struct core_window_callback_table;
 
-/* exported interface documented in cw_helper.h */
+/**
+ * Scroll a core window to make the given rectangle visible.
+ *
+ * \param[in] cw_t  The core window callback table to use.
+ * \param[in] cw_h  The core window's handle.
+ * \param[in] r     The rectangle to make visisble by scrolling.
+ * \return NSERROR_OK on success or appropriate error code
+ */
 nserror cw_helper_scroll_visible(
                const struct core_window_callback_table *cw_t,
                struct core_window *cw_h,


-----------------------------------------------------------------------

Summary of changes:
 desktop/cw_helper.h           |    9 ++++++++-
 frontends/riscos/corewindow.c |    6 +++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/desktop/cw_helper.h b/desktop/cw_helper.h
index 83a85c1..14e6993 100644
--- a/desktop/cw_helper.h
+++ b/desktop/cw_helper.h
@@ -29,7 +29,14 @@ struct rect;
 struct core_window;
 struct core_window_callback_table;
 
-/* exported interface documented in cw_helper.h */
+/**
+ * Scroll a core window to make the given rectangle visible.
+ *
+ * \param[in] cw_t  The core window callback table to use.
+ * \param[in] cw_h  The core window's handle.
+ * \param[in] r     The rectangle to make visisble by scrolling.
+ * \return NSERROR_OK on success or appropriate error code
+ */
 nserror cw_helper_scroll_visible(
                const struct core_window_callback_table *cw_t,
                struct core_window *cw_h,
diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c
index fd0e50a..a544352 100644
--- a/frontends/riscos/corewindow.c
+++ b/frontends/riscos/corewindow.c
@@ -847,8 +847,8 @@ ro_cw_get_scroll(struct core_window *cw, int *x, int *y)
                return NSERROR_INVALID;
        }
 
-       *x = state.xscroll / 2;
-       *y = state.yscroll / 2;
+       *x =  state.xscroll / 2;
+       *y = -state.yscroll / 2;
        return NSERROR_OK;
 }
 
@@ -872,7 +872,7 @@ ro_cw_set_scroll(struct core_window *cw, int x, int y)
                return NSERROR_INVALID;
        }
 
-       state.xscroll = -x * 2;
+       state.xscroll =  x * 2;
        state.yscroll = -y * 2;
 
        ro_cw_open(PTR_WIMP_OPEN(&state));


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to