Changed set_window_title() and hline() prototypes to match Allegro.

This commit is contained in:
SarahW 2017-04-19 13:06:16 +01:00
commit 86385007de
4 changed files with 4 additions and 4 deletions

View file

@ -547,7 +547,7 @@ void get_executable_name(char *s, int size);
void startblit(); void startblit();
void endblit(); void endblit();
void set_window_title(char *s); void set_window_title(const char *s);
void updatewindowsize(int x, int y); void updatewindowsize(int x, int y);

View file

@ -92,6 +92,6 @@ void closevideo();
void video_updatetiming(); void video_updatetiming();
void hline(BITMAP *b, int x1, int y, int x2, uint32_t col); void hline(BITMAP *b, int x1, int y, int x2, int col);
void destroy_bitmap(BITMAP *b); void destroy_bitmap(BITMAP *b);

View file

@ -5,7 +5,7 @@
BITMAP *screen; BITMAP *screen;
void hline(BITMAP *b, int x1, int y, int x2, uint32_t col) void hline(BITMAP *b, int x1, int y, int x2, int col)
{ {
if (y < 0 || y >= buffer->h) if (y < 0 || y >= buffer->h)
return; return;

View file

@ -307,7 +307,7 @@ void get_executable_name(char *s, int size)
GetModuleFileName(hinstance, s, size); GetModuleFileName(hinstance, s, size);
} }
void set_window_title(char *s) void set_window_title(const char *s)
{ {
if (video_fullscreen) if (video_fullscreen)
return; return;