Skip to content

Commit

Permalink
renamed rect->create_rect
Browse files Browse the repository at this point in the history
  • Loading branch information
dod38fr committed Oct 15, 2011
1 parent 6937517 commit 0f67f2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/SDLx/Surface.xs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SDLx/Validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/SDLx/Validate.xs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ val_rect( r )
SV* r
CODE:
int new_ = 0;
RETVAL = rect( r, &new_ );
RETVAL = create_rect( r, &new_ );
OUTPUT:
RETVAL

Expand Down

0 comments on commit 0f67f2e

Please sign in to comment.