Renamed "bRect" to "LinkedRect".
This commit is contained in:
parent
1ba51f0e58
commit
6a463ab8f5
|
@ -254,7 +254,7 @@ void engine_resetLists()
|
|||
{
|
||||
Object *ob, *ob2;
|
||||
Collectable *c1, *c2;
|
||||
bRect *r1, *r2;
|
||||
LinkedRect *r1, *r2;
|
||||
|
||||
ob = engine.bulletHead->next;
|
||||
while(ob != NULL)
|
||||
|
|
|
@ -35,7 +35,7 @@ SDL_Surface *gfx_messageBox;
|
|||
|
||||
void gfx_init()
|
||||
{
|
||||
screen_bufferHead = new bRect;
|
||||
screen_bufferHead = new LinkedRect;
|
||||
screen_bufferHead->next = NULL;
|
||||
screen_bufferTail = screen_bufferHead;
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "gfx.h"
|
||||
|
||||
SDL_Surface *screen;
|
||||
bRect *screen_bufferHead;
|
||||
bRect *screen_bufferTail;
|
||||
LinkedRect *screen_bufferHead;
|
||||
LinkedRect *screen_bufferTail;
|
||||
|
||||
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)
|
||||
{
|
||||
bRect *rect = new bRect;
|
||||
LinkedRect *rect = new LinkedRect;
|
||||
|
||||
rect->next = NULL;
|
||||
rect->x = x;
|
||||
|
@ -70,8 +70,8 @@ void screen_addBuffer(int x, int y, int w, int h)
|
|||
|
||||
void screen_flushBuffer()
|
||||
{
|
||||
bRect *prevRect = screen_bufferHead;
|
||||
bRect *rect = screen_bufferHead;
|
||||
LinkedRect *prevRect = screen_bufferHead;
|
||||
LinkedRect *rect = screen_bufferHead;
|
||||
screen_bufferTail = screen_bufferHead;
|
||||
|
||||
while (rect->next != NULL)
|
||||
|
@ -88,8 +88,8 @@ void screen_flushBuffer()
|
|||
|
||||
void screen_unBuffer()
|
||||
{
|
||||
bRect *prevRect = screen_bufferHead;
|
||||
bRect *rect = screen_bufferHead;
|
||||
LinkedRect *prevRect = screen_bufferHead;
|
||||
LinkedRect *rect = screen_bufferHead;
|
||||
screen_bufferTail = screen_bufferHead;
|
||||
|
||||
while (rect->next != NULL)
|
||||
|
|
|
@ -26,8 +26,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "structs.h"
|
||||
|
||||
extern SDL_Surface *screen;
|
||||
extern bRect *screen_bufferHead;
|
||||
extern bRect *screen_bufferTail;
|
||||
extern LinkedRect *screen_bufferHead;
|
||||
extern LinkedRect *screen_bufferTail;
|
||||
|
||||
void screen_blit(SDL_Surface *image, int x, int y);
|
||||
void screen_blitText(int i);
|
||||
|
|
|
@ -78,12 +78,12 @@ typedef struct TextObject_ {
|
|||
|
||||
} TextObject;
|
||||
|
||||
typedef struct bRect_ {
|
||||
typedef struct LinkedRect_ {
|
||||
|
||||
int x, y, w, h;
|
||||
struct bRect_ *next;
|
||||
struct LinkedRect_ *next;
|
||||
|
||||
} bRect;
|
||||
} LinkedRect;
|
||||
|
||||
typedef struct Planet_ {
|
||||
|
||||
|
|
Loading…
Reference in New Issue