回文章列表
作者s890510.bbs@bbs.cs.ntou.edu.tw (皮卡...累...) 看板: itoc
標題Re: [功能] 支援pmore2007互動式動畫
時間網際時空 (2008/04/08 Tue 22:43:28)
來幫忙整理一下吧...

: include/global.h

+  #define KEY_F1          0x0301
+  #define KEY_F2          0x0302
+  #define KEY_F3          0x0303
+  #define KEY_F4          0x0304
+  #define KEY_F5          0x0305
+  #define KEY_F6          0x0306
+  #define KEY_F7          0x0307
+  #define KEY_F8          0x0308
+  #define KEY_F9          0x0309
+  #define KEY_F10         0x030A
+  #define KEY_F11         0x030B
+  #define KEY_F12         0x030C
+  #define KEY_STAB        0x0105  /* shift-tab */

+  #ifdef  M3_USE_PMORE
+  #define MORE_PICTURE    -1
+  #define MORE_ARTICLE     1(這邊怎黏在一起了...)
+  #define MORE_DATA        2
+  #endif

: include/config.h


+  #define M3_USE_PMORE /* hrs.080408: 使用pmore */

: maple/more.c:more()

  if (!(fimage = f_img(fpath, &fsize)))
    return -1;

+  #ifdef M3_USE_PMORE
     return pmore(fpath, (footer == NULL ? MORE_DATA : (footer == -1 ?
     MORE_PICTURE : MORE_ARTICLE)));
+  #endif

  foff = fimage;
  fend = fimage + fsize;

: maple/board.c:XoPost()

  /* itoc.011113: 第一次進板一定要看進板畫面,第二次以後則取決 ufo 設定 */
  if (!(bits & BRD_V_BIT) || (cuser.ufo & UFO_BRDNOTE))
  {
    brd_bits[bno] = bits | BRD_V_BIT;
    brd_fpath(fpath, currboard, fn_note);
-   more(fpath, (char *) -1);
+   if (more(fpath, (char *) -1) != -1)
+   vmsg(NULL);
  }

: maple/pmore.c  (重頭戲:P)

下載  http://xdbbs.twbbs.org/svn/maple-xdbbs/src/maple/pmore.c

: maple/Makefile

 SRC = ...
+ pmore.c

 OBJ = ...
+ pmore.o

: maple/post.c

-    /* Thor.990204: 為考慮more 傳回值 */
-    if ((key = more(fpath, FOOTER_POST)) < 0)
-      break;
-
     post_history(xo, hdr);
     strcpy(currtitle, str_ttl(hdr->title));

+    /* Thor.990204: 為考慮more 傳回值 */
+    if ((key = more(fpath, FOOTER_POST)) < 0)
+      break;
+

re_key:
    switch (xo_getch(xo, key))

不過剛剛在研究一下以後...

發現,最下面那條橫槓....

  瀏覽 第 4/4 頁 ( 90%)  目前顯示: 第 57~79 行           (h)按鍵說明 ←[q]離開 

以時候顯示會出問題...

不過現在比較想要知道,

如何把那條

───────────────────────────────────────

變成黑色....
--
  Origin:  海大資工˙網際時空  bbs.cs.ntou.edu.tw 
  Author: s890510D213-45.dorm2.ntou.edu.tw 發表
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻