* Tracer: adjusted total line width to the new disassembly field width

* removed "forcing the default resolution of fullscreen to be the same as current display resolution"
This commit is contained in:
ansstuff 2012-12-06 16:50:58 +00:00
parent 7ec00fad29
commit 7c0604e323
3 changed files with 7 additions and 8 deletions

View File

@ -486,10 +486,6 @@ int DriverInitialize()
if(soundo)
soundo = InitSound();
// AnS: forcing the resolution of fullscreen to be the same as current display resolution
vmod = 0;
vmodes[0].y = 0;
SetVideoMode(fullscreen);
InitInputStuff(); /* Initialize DInput interfaces. */

View File

@ -515,6 +515,9 @@ void FCEUD_TraceInstruction(uint8 *opcode, int size)
str_tabs[i] = ' ';
str_tabs[spaces] = 0;
strcat(str_temp, str_tabs);
} else if (logging_options & LOG_TO_THE_LEFT)
{
strcat(str_temp, " ");
}
sprintf(str_address, "$%04X:", addr);

View File

@ -11,23 +11,23 @@
#define LOG_SYMBOLIC 256
#define LOG_CODE_TABBING 512
#define LOG_LINE_MAX_LEN 150
#define LOG_LINE_MAX_LEN 128
// Frame number - 7+1 symbols
// AXYS state - 20
// Processor status - 11
// Tabs - 31
// Address - 6
// Data - 10
// Disassembly - 63
// Disassembly - 35
// EOL (/0) - 1
// ------------------------
// 128 symbols total
// 122 symbols total
#define LOG_AXYSTATE_MAX_LEN 21
#define LOG_PROCSTATUS_MAX_LEN 12
#define LOG_TABS_MASK 31
#define LOG_ADDRESS_MAX_LEN 7
#define LOG_DATA_MAX_LEN 11
#define LOG_DISASSEMBLY_MAX_LEN 34
#define LOG_DISASSEMBLY_MAX_LEN 36
extern HWND hTracer;
extern int log_update_window;