| Revision | 161 (tree) |
|---|---|
| Time | 2009-02-19 12:40:01 |
| Author | |
(empty log message)
| @@ -155,33 +155,38 @@ | ||
| 155 | 155 | return -1; |
| 156 | 156 | } |
| 157 | 157 | #ifdef DEBUG |
| 158 | - SceUID fd; | |
| 159 | - fd = sceIoOpen("log.txt", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777); | |
| 160 | - if (fd >= 0) | |
| 161 | - { | |
| 162 | - sceIoWrite(fd, net.body, net.length); | |
| 163 | - sceIoClose(fd); | |
| 164 | - } | |
| 158 | + { | |
| 159 | + SceUID fd; | |
| 160 | + fd = sceIoOpen("log.txt", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777); | |
| 161 | + if (fd >= 0) | |
| 162 | + { | |
| 163 | + sceIoWrite(fd, net.body, net.length); | |
| 164 | + sceIoClose(fd); | |
| 165 | + } | |
| 166 | + } | |
| 165 | 167 | #endif |
| 166 | - S_2CH_RES_COLOR c; | |
| 167 | - c.text = WHITE; | |
| 168 | - c.bg = FORM_BG_COLOR; | |
| 169 | - c.link = BLUE; | |
| 170 | - pgFillvram(FORM_BG_COLOR, 0, 0, SCR_WIDTH, SCR_HEIGHT, 2); | |
| 171 | - s2ch.pgCursorX = 0; | |
| 172 | - s2ch.pgCursorY = 0; | |
| 173 | - str = strstr(net.body, "</html"); | |
| 174 | - if (str) *str = 0; | |
| 175 | - str = strstr(net.body, "<html"); | |
| 176 | - while ((str = pgPrintHtml(str, &c, 0, SCR_WIDTH, 0))) | |
| 177 | - { | |
| 178 | - s2ch.pgCursorX = 0; | |
| 179 | - s2ch.pgCursorY += LINE_PITCH; | |
| 180 | - if (s2ch.pgCursorY >= 260) | |
| 181 | - { | |
| 182 | - break; | |
| 183 | - } | |
| 184 | - } | |
| 168 | + { | |
| 169 | + S_2CH_RES_COLOR c; | |
| 170 | + c.text = WHITE; | |
| 171 | + c.bg = FORM_BG_COLOR; | |
| 172 | + c.link = BLUE; | |
| 173 | + pgFillvram(FORM_BG_COLOR, 0, 0, SCR_WIDTH, SCR_HEIGHT, 2); | |
| 174 | + s2ch.pgCursorX = 0; | |
| 175 | + s2ch.pgCursorY = 0; | |
| 176 | + str = strstr(net.body, "</html"); | |
| 177 | + if (str) *str = 0; | |
| 178 | + str = strstr(net.body, "<html"); | |
| 179 | + // 画面に表示しきれる分だけ表示(スクロールは面倒なのでなし) | |
| 180 | + while ((str = pgPrintHtml(str, &c, 0, SCR_WIDTH, 0))) | |
| 181 | + { | |
| 182 | + s2ch.pgCursorX = 0; | |
| 183 | + s2ch.pgCursorY += LINE_PITCH; | |
| 184 | + if (s2ch.pgCursorY >= 260) | |
| 185 | + { | |
| 186 | + break; | |
| 187 | + } | |
| 188 | + } | |
| 189 | + } | |
| 185 | 190 | pgPrintMenuBar("画面は切り替わりません ○で入力画面に ×でレス表\示に戻ります"); |
| 186 | 191 | while (s2ch.running) |
| 187 | 192 | { |