summaryrefslogtreecommitdiff
path: root/navit/graphics.c
diff options
context:
space:
mode:
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-17 21:19:10 +0000
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-17 21:19:10 +0000
commit7a7d372fe2e99f878b00bb701a0772d486fcaab6 (patch)
treee2ec293cc4c422a352b584050f06dfc0dff18621 /navit/graphics.c
parent2d5300a7ae19df3239419584e955a5fd6354c4d4 (diff)
downloadnavit-7a7d372fe2e99f878b00bb701a0772d486fcaab6.tar.gz
Add:Core:Adding the possibility to resize overlays
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2141 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r--navit/graphics.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/navit/graphics.c b/navit/graphics.c
index c548c6287..35b408775 100644
--- a/navit/graphics.c
+++ b/navit/graphics.c
@@ -167,6 +167,27 @@ struct graphics * graphics_overlay_new(struct graphics *parent, struct point *p,
}
/**
+ * @brief Alters the size, position, alpha and wraparound for an overlay
+ *
+ * @param this_ The overlay's graphics struct
+ * @param p The new position of the overlay
+ * @param w The new width of the overlay
+ * @param h The new height of the overlay
+ * @param alpha The new alpha of the overlay
+ * @param wraparound The new wraparound of the overlay
+ */
+void
+graphics_overlay_resize(struct graphics *this_, struct point *p, int w, int h, int alpha, int wraparound)
+{
+ if (! this_->meth.overlay_resize) {
+ return;
+ }
+
+ this_->meth.overlay_resize(this_->priv, p, w, h, alpha, wraparound);
+}
+
+
+/**
* FIXME
* @param <>
* @returns <>