#include "main.h"
Go to the source code of this file.
Defines | |
| #define | SCREEN_TEXTLIMIT_TOP 0 |
| #define | SCREEN_TEXTLIMIT_LEFT 0 |
| #define | SCREEN_TEXTLIMIT_RIGHT SCREEN_WIDTH-1 |
| #define | SCREEN_TEXTLIMIT_BOTTOM SCREEN_HEIGHT-1 |
Functions | |
| void | draw_line (int startWidth, int startHeight, int endWidth, int endHeight, int lineColor) |
| void | blit_box (int left, int top, int right, int bottom, char *source, int leftDest, int topDest, char *dest) |
| void | draw_transparent_box (int left, int top, int right, int bottom, int colorAdj) |
| void | draw_splitted_box (int left, int top, int right, int bottom, unsigned char e) |
| void | set_clip (int left, int top, int right, int bottom) |
| void | save_clip () |
| void | reset_clip () |
Variables | |
| int | textWindowTop |
| int | textWindowTopSave |
| int | textWindowLeft |
| int | textWindowLeftSave |
| int | textWindowRight |
| int | textWindowRightSave |
| int | textWindowBottom |
| int | textWindowBottomSave |
| #define SCREEN_TEXTLIMIT_BOTTOM SCREEN_HEIGHT-1 |
Screen bottom limit to display the texts
Definition at line 37 of file interface.h.
Referenced by add_redraw_area(), add_redraw_current_area(), draw_character(), draw_line(), draw_splitted_box(), draw_transparent_box(), init_vars(), reset_clip(), and set_clip().
| #define SCREEN_TEXTLIMIT_LEFT 0 |
Screen left limit to display the texts
Definition at line 33 of file interface.h.
Referenced by draw_character(), draw_line(), draw_splitted_box(), and draw_transparent_box().
| #define SCREEN_TEXTLIMIT_RIGHT SCREEN_WIDTH-1 |
Screen right limit to display the texts
Definition at line 35 of file interface.h.
Referenced by add_redraw_area(), draw_line(), draw_splitted_box(), draw_transparent_box(), init_vars(), reset_clip(), and set_clip().
| #define SCREEN_TEXTLIMIT_TOP 0 |
Screen top limit to display the texts
Definition at line 31 of file interface.h.
Referenced by draw_character(), draw_line(), draw_splitted_box(), draw_transparent_box(), and reset_clip().
| void blit_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| char * | source, | |||
| int | leftDest, | |||
| int | topDest, | |||
| char * | dest | |||
| ) |
Blit button box from working buffer to front buffer
| left | start width to draw the button | |
| top | start height to draw the button | |
| right | end width to draw the button | |
| bottom | end height to draw the button source screen buffer, in this case working buffer | |
| leftDest | start width to draw the button in destination buffer | |
| topDest | start height to draw the button in destination buffer destination screen buffer, in this case front buffer |
Definition at line 169 of file interface.c.
References SCREEN_WIDTH, and screenLockupTable.
Referenced by blit_background_areas(), and draw_button_gfx().
| void draw_line | ( | int | startWidth, | |
| int | startHeight, | |||
| int | endWidth, | |||
| int | endHeight, | |||
| int | lineColor | |||
| ) |
Draw button line
| startWidth | width value where the line starts | |
| startHeight | height value where the line starts | |
| endWidth | width value where the line ends | |
| endHeight | height value where the line ends | |
| lineColor | line color in the current palette |
Definition at line 35 of file interface.c.
References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, and screenLockupTable.
Referenced by display_zones(), and draw_button_box().
| void draw_splitted_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| unsigned char | e | |||
| ) |
Definition at line 272 of file interface.c.
References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, SCREEN_WIDTH, and screenLockupTable.
Referenced by draw_button_gfx().
| void draw_transparent_box | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| int | colorAdj | |||
| ) |
Draws inside buttons transparent area
| left | start width to draw the button | |
| top | start height to draw the button | |
| right | end width to draw the button | |
| bottom | end height to draw the button | |
| colorAdj | index to adjust the transparent box color |
Definition at line 210 of file interface.c.
| void reset_clip | ( | ) |
Definition at line 332 of file interface.c.
References SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, textWindowBottom, textWindowLeft, textWindowRight, and textWindowTop.
Referenced by process_drawing(), and redraw_engine_actions().
| void save_clip | ( | ) |
Definition at line 324 of file interface.c.
References textWindowBottom, textWindowBottomSave, textWindowLeft, textWindowLeftSave, textWindowRight, textWindowRightSave, textWindowTop, and textWindowTopSave.
| void set_clip | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom | |||
| ) |
Definition at line 305 of file interface.c.
References SCREEN_HEIGHT, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_RIGHT, SCREEN_WIDTH, textWindowBottom, textWindowLeft, textWindowRight, and textWindowTop.
Referenced by process_drawing().
| int textWindowBottom |
Definition at line 45 of file interface.h.
Referenced by copy_grid_mask(), draw_brick_sprite(), draw_over_sprite_actor(), process_drawing(), reset_clip(), save_clip(), and set_clip().
| int textWindowLeft |
Definition at line 41 of file interface.h.
Referenced by copy_grid_mask(), draw_brick_sprite(), draw_over_sprite_actor(), process_drawing(), reset_clip(), save_clip(), and set_clip().
| int textWindowRight |
Definition at line 43 of file interface.h.
Referenced by copy_grid_mask(), draw_over_sprite_actor(), process_drawing(), reset_clip(), save_clip(), and set_clip().
| int textWindowTop |
Definition at line 39 of file interface.h.
Referenced by copy_grid_mask(), draw_brick_sprite(), draw_over_sprite_actor(), process_drawing(), reset_clip(), save_clip(), and set_clip().
1.5.5