Skip to content
Browse files

renamed rect->create_rect

  • Loading branch information...
1 parent 6937517 commit 0f67f2ea29111ed5af6bf38a2a3e2dcbcfe05865 @dod38fr dod38fr committed Oct 15, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/SDLx/Surface.xs
  2. +1 −1 src/SDLx/Validate.h
  3. +1 −1 src/SDLx/Validate.xs
View
6 src/SDLx/Surface.xs
@@ -189,7 +189,7 @@ surfacex_draw_rect ( surface, rt, color )
if( SvOK(rt) )
{
int newly_created_rect = 0;
- SV* foo = rect( rt, &newly_created_rect );
+ SV* foo = create_rect( rt, &newly_created_rect );
r_rect = *(SDL_Rect*)bag2obj(foo);
SDL_FillRect(surface, &r_rect, m_color);
SvREFCNT_dec(foo);
@@ -252,7 +252,7 @@ surfacex_blit( src, dest, ... )
if( items > 2 && SvOK(ST(2)) )
{
- s_rect_sv = rect(ST(2), &newly_created_rect);
+ s_rect_sv = create_rect(ST(2), &newly_created_rect);
_src_rect = *(SDL_Rect *)bag2obj( s_rect_sv );
mall_sr = 1;
}
@@ -266,7 +266,7 @@ surfacex_blit( src, dest, ... )
if( items > 3 && SvOK(ST(3)) )
{
- d_rect_sv = rect(ST(3), &newly_created_rect);
+ d_rect_sv = create_rect(ST(3), &newly_created_rect);
_dest_rect = *(SDL_Rect *)bag2obj( d_rect_sv );
mall_dr = 1;
}
View
2 src/SDLx/Validate.h
@@ -2,7 +2,7 @@
#include <SDL.h>
#include "helper.h"
-SV *rect( SV *rect, int* new_rect_made)
+SV *create_rect( SV *rect, int* new_rect_made)
{
SV *retval = NULL;
/*we hand this over to perl to handle */
View
2 src/SDLx/Validate.xs
@@ -113,7 +113,7 @@ val_rect( r )
SV* r
CODE:
int new_ = 0;
- RETVAL = rect( r, &new_ );
+ RETVAL = create_rect( r, &new_ );
OUTPUT:
RETVAL

0 comments on commit 0f67f2e

Please sign in to comment.
Something went wrong with that request. Please try again.