00001
00020 #include "mfcpch.h"
00021 #include "debugwin.h"
00022 #include "werd.h"
00023 #include "drawfx.h"
00024
00025 #define FXDEMOWIN "FXDemo"
00026 #define FXDEMOXPOS 250
00027 #define FXDEMOYPOS 0
00028 #define FXDEMOXSIZE 400
00029 #define FXDEMOYSIZE 150
00030 #define BLN_MAX 512 //max coord for bln
00031 #define WERDWIDTH (BLN_MAX*20)
00032 #define DECENT_WERD_WIDTH (5*bln_x_height)
00033
00034 #define DEBUG_WIN_NAME "FXDebug"
00035 #define DEBUG_XPOS 0
00036 #define DEBUG_YPOS 120
00037 #define DEBUG_XSIZE 80
00038 #define DEBUG_YSIZE 32
00039 #define YMAX 3508
00040 #define XMAX 2550
00041 #define MAXEDGELENGTH 1024 //max steps inoutline
00042
00043 #define EXTERN
00044
00047 EXTERN STRING_VAR (fx_debugfile, DEBUG_WIN_NAME, "Name of debugfile");
00050 EXTERN WINDOW fx_win = NO_WINDOW;
00051 EXTERN FILE *fx_debug = NULL;
00052
00053
00059 void create_fx_win() {
00060 fx_win = create_window (FXDEMOWIN, SCROLLINGWIN,
00061 FXDEMOXPOS, FXDEMOYPOS, FXDEMOXSIZE, FXDEMOYSIZE,
00062 -WERDWIDTH, WERDWIDTH, -BLN_MAX, BLN_MAX,
00063 TRUE, FALSE, TRUE, TRUE);
00064 vdc_extent (fx_win, -DECENT_WERD_WIDTH,
00065 bln_baseline_offset - bln_x_height,
00066 DECENT_WERD_WIDTH, 2 * bln_x_height + bln_baseline_offset);
00067 }
00068
00069
00070
00076 void clear_fx_win() {
00077 clear_view_surface(fx_win);
00078 line_color_index(fx_win, DIM_GREY);
00079 move2d (fx_win, -WERDWIDTH, bln_baseline_offset);
00080 draw2d(fx_win, WERDWIDTH, bln_baseline_offset);
00081 move2d (fx_win, -WERDWIDTH, bln_x_height + bln_baseline_offset);
00082 draw2d (fx_win, WERDWIDTH, bln_x_height + bln_baseline_offset);
00083 }
00084
00085
00086
00091 void create_fxdebug_win() {
00092
00093
00094
00095
00096
00097
00098 }