trunk/src/osd/modules/debugger/qt/debugqtview.c
| r32820 | r32821 |  | 
|---|
| 254 | 254 | break; | 
| 255 | 255 | text.append(QChar(viewdata[viewDataOffset + width].byte)); | 
| 256 | 256 | } | 
|  | 257 |  | 
| 257 | 258 | // Your characters are not guaranteed to take up the entire length x fontWidth x fontHeight, so fill before. | 
| 258 | 259 | painter.fillRect(x*fontWidth, y*fontHeight, width*fontWidth, fontHeight, bgBrush); | 
| 259 |  | // Static text object | 
| 260 |  | QStaticText staticText(text); | 
| 261 |  | painter.drawStaticText(x*fontWidth, y*fontHeight, staticText); | 
|  | 260 |  | 
|  | 261 | // There is a touchy interplay between font height, drawing difference, visible position, etc | 
|  | 262 | // Fonts don't get drawn "down and to the left" like boxes, so some wiggling is needed. | 
|  | 263 | painter.drawText(x*fontWidth, (y*fontHeight + (fontHeight*0.80)), text); | 
| 262 | 264 | } | 
| 263 | 265 | } | 
| 264 | 266 | } | 
trunk/src/emu/debug/debugcmd.c
| r32820 | r32821 |  | 
|---|
| 268 | 268 | } | 
| 269 | 269 |  | 
| 270 | 270 | /* add all the commands */ | 
| 271 |  | debug_console_register_command(machine, "help",      CMDFLAG_NONE, 0, 0, 2, execute_help); | 
|  | 271 | debug_console_register_command(machine, "help",      CMDFLAG_NONE, 0, 0, 1, execute_help); | 
| 272 | 272 | debug_console_register_command(machine, "print",     CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_print); | 
| 273 | 273 | debug_console_register_command(machine, "printf",    CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_printf); | 
| 274 | 274 | debug_console_register_command(machine, "logerror",  CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_logerror); | 
| r32820 | r32821 |  | 
|---|
| 678 | 678 | { | 
| 679 | 679 | if (params == 0) | 
| 680 | 680 | debug_console_printf_wrap(machine, 80, "%s\n", debug_get_help("")); | 
| 681 |  | else  if (params == 1) | 
|  | 681 | else | 
| 682 | 682 | debug_console_printf_wrap(machine, 80, "%s\n", debug_get_help(param[0])); | 
| 683 |  | else if (params == 2) | 
| 684 |  | { | 
| 685 |  | UINT64 width; | 
| 686 |  | debug_command_parameter_number(machine, param[1], &width); | 
| 687 |  | debug_console_printf_wrap(machine, (int)width, "%s\n", debug_get_help(param[0])); | 
| 688 |  | } | 
| 689 | 683 | } | 
| 690 | 684 |  | 
| 691 | 685 |  |