Renamed "bRect" to "LinkedRect".

This commit is contained in:
onpon4 2016-11-25 18:41:55 -05:00
parent 1ba51f0e58
commit 6a463ab8f5
5 changed files with 14 additions and 14 deletions

View File

@ -254,7 +254,7 @@ void engine_resetLists()
{ {
Object *ob, *ob2; Object *ob, *ob2;
Collectable *c1, *c2; Collectable *c1, *c2;
bRect *r1, *r2; LinkedRect *r1, *r2;
ob = engine.bulletHead->next; ob = engine.bulletHead->next;
while(ob != NULL) while(ob != NULL)

View File

@ -35,7 +35,7 @@ SDL_Surface *gfx_messageBox;
void gfx_init() void gfx_init()
{ {
screen_bufferHead = new bRect; screen_bufferHead = new LinkedRect;
screen_bufferHead->next = NULL; screen_bufferHead->next = NULL;
screen_bufferTail = screen_bufferHead; screen_bufferTail = screen_bufferHead;

View File

@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "gfx.h" #include "gfx.h"
SDL_Surface *screen; SDL_Surface *screen;
bRect *screen_bufferHead; LinkedRect *screen_bufferHead;
bRect *screen_bufferTail; LinkedRect *screen_bufferTail;
void screen_blit(SDL_Surface *image, int x, int y) void screen_blit(SDL_Surface *image, int x, int y)
{ {
@ -56,7 +56,7 @@ void screen_drawBackground()
void screen_addBuffer(int x, int y, int w, int h) void screen_addBuffer(int x, int y, int w, int h)
{ {
bRect *rect = new bRect; LinkedRect *rect = new LinkedRect;
rect->next = NULL; rect->next = NULL;
rect->x = x; rect->x = x;
@ -70,8 +70,8 @@ void screen_addBuffer(int x, int y, int w, int h)
void screen_flushBuffer() void screen_flushBuffer()
{ {
bRect *prevRect = screen_bufferHead; LinkedRect *prevRect = screen_bufferHead;
bRect *rect = screen_bufferHead; LinkedRect *rect = screen_bufferHead;
screen_bufferTail = screen_bufferHead; screen_bufferTail = screen_bufferHead;
while (rect->next != NULL) while (rect->next != NULL)
@ -88,8 +88,8 @@ void screen_flushBuffer()
void screen_unBuffer() void screen_unBuffer()
{ {
bRect *prevRect = screen_bufferHead; LinkedRect *prevRect = screen_bufferHead;
bRect *rect = screen_bufferHead; LinkedRect *rect = screen_bufferHead;
screen_bufferTail = screen_bufferHead; screen_bufferTail = screen_bufferHead;
while (rect->next != NULL) while (rect->next != NULL)

View File

@ -26,8 +26,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "structs.h" #include "structs.h"
extern SDL_Surface *screen; extern SDL_Surface *screen;
extern bRect *screen_bufferHead; extern LinkedRect *screen_bufferHead;
extern bRect *screen_bufferTail; extern LinkedRect *screen_bufferTail;
void screen_blit(SDL_Surface *image, int x, int y); void screen_blit(SDL_Surface *image, int x, int y);
void screen_blitText(int i); void screen_blitText(int i);

View File

@ -78,12 +78,12 @@ typedef struct TextObject_ {
} TextObject; } TextObject;
typedef struct bRect_ { typedef struct LinkedRect_ {
int x, y, w, h; int x, y, w, h;
struct bRect_ *next; struct LinkedRect_ *next;
} bRect; } LinkedRect;
typedef struct Planet_ { typedef struct Planet_ {