[Xfce4-commits] [xfce/xfwm4] 03/11: compositor: Rename `scale_glx_texture()`

noreply at xfce.org noreply at xfce.org
Wed May 15 22:51:24 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   l   i   v   i   e   r       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfwm4.

commit abcefc24cd41052936764f2a3d4f742e1080ecd6
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue May 14 21:03:06 2019 +0200

    compositor: Rename `scale_glx_texture()`
    
    Rename `scale_glx_texture()` as `set_glx_scale()`.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index a800477..74344e2 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1508,15 +1508,15 @@ bind_glx_texture (ScreenInfo *screen_info, Pixmap pixmap)
 }
 
 static void
-scale_glx_texture (ScreenInfo *screen_info, gint width, gint height, double zoom)
+set_glx_scale (ScreenInfo *screen_info, gint width, gint height, double scale)
 {
     if (screen_info->texture_type == GL_TEXTURE_RECTANGLE_ARB)
     {
-        glScaled ((double) width * zoom, (double) height * zoom, 1.0);
+        glScaled ((double) width * scale, (double) height * scale, 1.0);
     }
     else
     {
-        glScaled(1.0 * zoom, 1.0 * zoom, 1.0);
+        glScaled(1.0 * scale, 1.0 * scale, 1.0);
     }
 }
 
@@ -1597,7 +1597,7 @@ redraw_glx_texture (ScreenInfo *screen_info, XserverRegion region)
                         GL_TEXTURE_MAG_FILTER,
                         screen_info->texture_filter);
 
-        scale_glx_texture (screen_info, screen_info->width, screen_info->height, zoom);
+        set_glx_scale (screen_info, screen_info->width, screen_info->height, zoom);
         glTranslated (x, y, 0.0);
         redraw_glx_screen (screen_info);
     }
@@ -1607,7 +1607,7 @@ redraw_glx_texture (ScreenInfo *screen_info, XserverRegion region)
         XRectangle *rects;
         int nrects;
 
-        scale_glx_texture (screen_info, screen_info->width, screen_info->height, 1.0);
+        set_glx_scale (screen_info, screen_info->width, screen_info->height, 1.0);
         glTranslated (0.0, 0.0, 0.0);
 
         rects = XFixesFetchRegionAndBounds (myScreenGetXDisplay (screen_info),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list