| 1 |
Descriptionscip-debian debian dosbox 0.74-3-5 dosbox/patches/`format-strings.patch`#Description.: Add missing format strings |
| 2 |
Authorscip-debian debian dosbox 0.74-3-5 dosbox/patches/`format-strings.patch`#Author.: Stephen Kitt <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
|
| 4 |
--- a/src/debug/debug.cppscip-debian debian dosbox 0.74-3-5 dosbox/upstream/`src/debug/debug.cpp`: |
| 5 |
+++ b/src/debug/debug.cppscip-debian debian dosbox 0.74-3-5 dosbox/upstream/`src/debug/debug.cpp`: |
| 6 |
@@ -752,8 +752,8 @@ |
| 7 |
if ((cpu.pmode) && curSelectorName[0]) { |
| 8 |
char out1[200], out2[200]; |
| 9 |
GetDescriptorInfo(curSelectorName,out1,out2); |
| 10 |
|
| 11 |
|
| 12 |
+ mvwprintw(dbg.win_reg,2,28,"%s",out1); |
| 13 |
+ mvwprintw(dbg.win_reg,3,28,"%s",out2); |
| 14 |
} |
| 15 |
|
| 16 |
wattrset(dbg.win_reg,0); |
| 17 |
@@ -2228,8 +2228,8 @@ |
| 18 |
|
| 19 |
int y = idx / 3; |
| 20 |
int x = (idx % 3) * 26; |
| 21 |
|
| 22 |
|
| 23 |
+ mvwprintw(dbg.win_var, y, x, "%s", dv->GetName()); |
| 24 |
+ mvwprintw(dbg.win_var, y, (x + DEBUG_VAR_BUF_LEN + 1) , "%s", buffer); |
| 25 |
} |
| 26 |
|
| 27 |
wrefresh(dbg.win_var); |
| 28 |
--- a/src/debug/debug_gui.cppscip-debian debian dosbox 0.74-3-5 dosbox/upstream/`src/debug/debug_gui.cpp`: |
| 29 |
+++ b/src/debug/debug_gui.cppscip-debian debian dosbox 0.74-3-5 dosbox/upstream/`src/debug/debug_gui.cpp`: |
| 30 |
@@ -95,7 +95,7 @@ |
| 31 |
for (string::size_type posf=0, posl; (posl=(*i).find('\n',posf)) != string::npos ;posf=posl+1) |
| 32 |
rem_lines -= (int) ((posl-posf) / maxx) + 1; // len=(posl+1)-posf-1 |
| 33 |
/* Const cast is needed for pdcurses which has no const char in mvwprintw (bug maybe) */ |
| 34 |
|
| 35 |
+ mvwprintw(dbg.win_out,rem_lines-1, 0, "%s", const_cast<char*>((*i).c_str())); |
| 36 |
} |
| 37 |
mvwprintw(dbg.win_out,maxy-1, 0, ""); |
| 38 |
wrefresh(dbg.win_out); |