• R/O
  • SSH
  • HTTPS

owata: Commit


Commit MetaInfo

Revision161 (tree)
Time2009-02-19 12:40:01
Authorbird_may_nike

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunc/src/psp2chForm.c (revision 160)
+++ trunc/src/psp2chForm.c (revision 161)
@@ -155,33 +155,38 @@
155155 return -1;
156156 }
157157 #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+ }
165167 #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+ }
185190 pgPrintMenuBar("画面は切り替わりません ○で入力画面に ×でレス表\示に戻ります");
186191 while (s2ch.running)
187192 {
Show on old repository browser