[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48787] trunk/blender/intern/raskter/ raskter.c: fix: inline to __inline in raskter.c for msvc

Peter Larabell xgl.asyliax at gmail.com
Tue Jul 10 07:16:45 CEST 2012


Revision: 48787
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48787
Author:   xglasyliax
Date:     2012-07-10 05:16:43 +0000 (Tue, 10 Jul 2012)
Log Message:
-----------
fix: inline to __inline in raskter.c for msvc

Modified Paths:
--------------
    trunk/blender/intern/raskter/raskter.c

Modified: trunk/blender/intern/raskter/raskter.c
===================================================================
--- trunk/blender/intern/raskter/raskter.c	2012-07-10 04:51:08 UTC (rev 48786)
+++ trunk/blender/intern/raskter/raskter.c	2012-07-10 05:16:43 UTC (rev 48787)
@@ -814,14 +814,14 @@
     return (int)((normalized_value * (float)(max_value)) + 0.5f);
 }
 
-inline float get_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y) {
+__inline float get_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y) {
     if(pos_x < 0 || pos_x >= buf_x || pos_y < 0 || pos_y >= buf_y) {
         return 0.0f;
     }
     return buf[(pos_y * buf_x) + pos_x];
 }
 
-inline float get_pixel_intensity_bilinear(float *buf, int buf_x, int buf_y, float u, float v) {
+__inline float get_pixel_intensity_bilinear(float *buf, int buf_x, int buf_y, float u, float v) {
     int a;
     int b;
     int a_plus_1;
@@ -847,7 +847,7 @@
 
 }
 
-inline void set_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y, float intensity) {
+__inline void set_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y, float intensity) {
     if(pos_x < 0 || pos_x >= buf_x || pos_y < 0 || pos_y >= buf_y) {
         return;
     }




More information about the Bf-blender-cvs mailing list