mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
"Privatize" font-related defines.
This commit is contained in:
parent
dd7f5798fa
commit
5c0e8be6ca
@ -66,8 +66,6 @@
|
||||
|
||||
#define EDIT_TEXT_HORIZONTAL_OFFSET 0
|
||||
#define EDIT_TEXT_VERTICAL_OFFSET 1
|
||||
#define FONT_OFFSET_X 0
|
||||
#define FONT_OFFSET_Y 0
|
||||
|
||||
#define EDIT_RIGHT_EXTREME option_edit_right_extreme
|
||||
#define EDIT_LEFT_EXTREME option_edit_left_extreme
|
||||
@ -264,12 +262,6 @@ void format_paragraph (WEdit *edit, int force);
|
||||
/* either command or char_for_insertion must be passed as -1 */
|
||||
int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion);
|
||||
|
||||
#define CPushFont(x,y)
|
||||
#define CPopFont()
|
||||
#define FIXED_FONT 1
|
||||
#define FONT_PIX_PER_LINE 1
|
||||
#define FONT_MEAN_WIDTH 1
|
||||
|
||||
#define get_sys_error(s) (s)
|
||||
|
||||
#define edit_error_dialog(h,s) query_dialog (h, s, 0, 1, _("&Dismiss"))
|
||||
|
@ -39,6 +39,12 @@
|
||||
#define MOD_MARKED (1 << 10)
|
||||
#define MOD_CURSOR (1 << 11)
|
||||
|
||||
#define FONT_OFFSET_X 0
|
||||
#define FONT_OFFSET_Y 0
|
||||
#define FIXED_FONT 1
|
||||
#define FONT_PIX_PER_LINE 1
|
||||
#define FONT_MEAN_WIDTH 1
|
||||
|
||||
|
||||
static void status_string (WEdit * edit, char *s, int w, int fill)
|
||||
{
|
||||
@ -335,8 +341,6 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
|
||||
int force = edit->force;
|
||||
long b;
|
||||
|
||||
CPushFont ("editor", 0);
|
||||
|
||||
/*
|
||||
* If the position of the page has not moved then we can draw the cursor
|
||||
* character only. This will prevent line flicker when using arrow keys.
|
||||
@ -432,7 +436,6 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
|
||||
exit_render:
|
||||
edit->screen_modified = 0;
|
||||
prev_start = edit->start_line;
|
||||
CPopFont ();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#define tab_width option_tab_spacing
|
||||
|
||||
#define NO_FORMAT_CHARS_START "-+*\\,.;:&>"
|
||||
#define FONT_MEAN_WIDTH 1
|
||||
|
||||
static long
|
||||
line_start (WEdit *edit, long line)
|
||||
|
Loading…
Reference in New Issue
Block a user