]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/DOS_GFX.EXE
authorsparky4 <sparky4@4ch.maidlab.jp>
Sun, 18 May 2014 20:32:02 +0000 (15:32 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Sun, 18 May 2014 20:32:02 +0000 (15:32 -0500)
modified:   16/dos_gfx.cpp
modified:   16proj.bfproject

16/DOS_GFX.EXE
16/dos_gfx.cpp
16proj.bfproject

index 9c028e8d9b88d3a43963d14c1a733245494ff4c1..066444717eb4c60ee74a65079d11af7dc3747563 100644 (file)
Binary files a/16/DOS_GFX.EXE and b/16/DOS_GFX.EXE differ
index a561569a3c3bedd30b10307a0a81e147c0b5b1e7..1a033c879b02ab17c26c28df71e3b79e0f8dce58 100644 (file)
@@ -184,9 +184,9 @@ OUT value TO PORT 3C0H (where "value" is the
   number of pixels to offset)\r
 -----------------------------------------------\r
 */\r
-               inp(0x3DA);\r
-               outpw(0x3C0, 0x13);\r
-               outpw(0x3C0, 0x58);\r
+//\r
+//     inp(0x3DA);\r
+//     outp(0x3C0, 0x13);\r
 \r
                }\r
 \r
@@ -289,6 +289,7 @@ void set320x240x256_X(void)
 \r
 /*-----------XXXX-------------*/\r
 /*tile*/\r
+//king_crimson's code\r
 void putColorBox_X(int x, int y, int w, int h, byte color) {\r
        outp(0x3c4, 0x02);\r
 \r
@@ -319,14 +320,22 @@ void scrolly(int bong)
                boing=1;\r
 \r
        for(int ti=0;ti<TILEWH;ti++)\r
+               //delay(100);\r
                vScroll(boing);\r
 }\r
 \r
-/*\r
-\r
-\r
-To implement smooth horizontal scrolling, you would do the following:\r
+//king_crimson's code\r
+void hScroll(int Cols) {
+       inp(0x3DA);\r
+       outp(0x3C0, 0x13);\r
+       outp(0x3C0, Cols & 3);\r
+       outp(0x3D4, 0x13);\r
+       outp(0x3D5, Cols >> 2);
+       setVisibleStart(visStart + (Cols * height));
+       //setVisibleStart(visStart + (Cols * width));\r
+}\r
 \r
+/*To implement smooth horizontal scrolling, you would do the following:\r
 -------------- Horizontal Scrolling ------------\r
 FOR X = 0 TO 319 DO\r
   SET HPP TO ( X MOD 4 )\r
@@ -808,10 +817,12 @@ int main(void)
                        ding(4);\r
                }\r
                //end of screen savers\r
-               doTest();\r
+//             doTest();
+               getch();\r
 \r
                while(!kbhit()){ // conditions of screen saver\r
-                       vScroll(-1);\r
+                       hScroll(1);\r
+                       //delay(1000);\r
                }\r
 //++++0000\r
                setvideo(0);\r
index 6f8e8fde2a09ea49a1ad951c897c9d8e2f243847..a010bfcb4d491d24b4cb4fece3b46030f712bfe7 100644 (file)
-view_main_toolbar: 1
-bmarksearchmode: 0
-snr_scope: 0
-snr_type: 0
-view_cline: 0
-editor_indent_wspaces: 0
-c2e.convert_xml: 1
-snr_dotmatchall: 0
-c2e.convert_symbol: 0
+c2e.convert_special: 0
+e2c.convert_num: 0
+openfiles: /dos/z/16/doc/project.txt:0:0:1:
+openfiles: /dos/z/16/src/eng_core.cpp:0:0:0:
+openfiles: /dos/z/16/src/eng_core.h:0:0:0:
+openfiles: /dos/z/16/src/eng_comm.cpp:0:0:0:
+openfiles: /dos/z/16/src/eng_comm.h:0:0:0:
+openfiles: /dos/z/16/src/lib/dos_comm.c:0:0:0:
+openfiles: /dos/z/16/src/lib/dos_comm.h:0:0:0:
+openfiles: /dos/z/16/src/eng_gfx.cpp:0:0:0:
+openfiles: /dos/z/16/src/eng_gfx.h:0:0:0:
+openfiles: /dos/z/16/src/lib/dos_gfx.cpp:0:0:0:
+openfiles: /dos/z/16/src/lib/dos_gfx.h:0:0:0:
+openfiles: /dos/z/16/src/eng_snd.cpp:0:0:0:
+openfiles: /dos/z/16/src/eng_snd.h:0:0:0:
+openfiles: /dos/z/16/src/lib/dos_opl2.cpp:0:0:0:
+openfiles: /dos/z/16/src/lib/opl2.h:0:0:0:
+openfiles: /dos/z/16/src/lib/lib_com.cpp:0:0:0:
+openfiles: /dos/z/16/src/lib/lib_com.h:0:0:0:
+openfiles: /dos/z/16/src/eng_ai.cpp:0:0:0:
+openfiles: /dos/z/16/src/eng_ai.h:0:0:0:
+openfiles: /dos/z/16/src/timer.cpp:0:0:0:
+openfiles: /dos/z/16/src/timer.h:0:0:0:
+openfiles: /dos/z/16/src/engine.h:0:0:0:
+openfiles: /dos/z/16/src/main.cpp:0:0:0:
+openfiles: /dos/z/16/doc/ojoww.cpp:0:0:0:
+openfiles: /dos/z/16/doc/char.txt:0:0:0:
+snr_recursion_level: 0
+convertcolumn_horizontally: 0
+adv_open_matchname: 0
+show_mbhl: 1
+view_line_numbers: 1
+fb_show_backup_f: 0
+htmlbar_thumbnailwidth: 300
+view_left_panel: 0
+default_mime_type: text/plain
+e2c.convert_xml: 1
+c2e.convert_iso: 0
+opendir: file:///dos/z/16/doc
+wrap_text_default: 0
+bookmarks_filename_mode: 1
+snr_casesens: 0
+view_blocks: 1
+name: Project 16
+convertcolumn_separator: 
+convertcolumn_fillempty: 
+replacelist: NUM_SCANCODES
+replacelist: keer
+replacelist: keep
+replacelist: kee
+replacelist: keyp
+fb_show_hidden_f: 0
+editor_tab_width: 4
+template: /usr/share/bluefish/templates/C_Header_GPL
+show_visible_spacing: 0
+view_statusbar: 1
+display_right_margin: 0
+c2e.IE_apos_workaround: 0
+outputb_scroll_mode: 0
+leftpanel_active_tab: 1
+enable_syntax_scan: 1
+ssearch_regex: 0
+e2c.convert_iso: 0
+ssearch_casesens: 0
+charmap_block: 11
+recent_files: file:///dos/z/16/remake.sh
+recent_files: file:///dos/z/16/16.sh
+recent_files: file:///dos/z/16/16.bat
+recent_files: file:///dos/z/16/remake.bat
+recent_files: file:///dos/z/16/ojowwww.cpp
+recent_files: file:///dos/z/16/doc/project.txt
+recent_files: file:///dos/z/16/src/eng_core.cpp
+recent_files: file:///dos/z/16/src/eng_core.h
+recent_files: file:///dos/z/16/src/eng_gfx.cpp
+recent_files: file:///dos/z/16/src/lib/dos_comm.c
+recent_files: file:///dos/z/16/src/lib/dos_gfx.h
+recent_files: file:///dos/z/16/src/eng_snd.h
+recent_files: file:///dos/z/16/src/eng_snd.cpp
+recent_files: file:///dos/z/16/src/eng_gfx.h
+recent_files: file:///dos/z/16/src/eng_comm.h
+recent_files: file:///dos/z/16/src/eng_comm.cpp
+recent_files: file:///dos/z/16/src/lib/dos_comm.h
+recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp
+recent_files: file:///dos/z/16/src/eng_ai.h
+recent_files: file:///dos/z/16/src/eng_ai.cpp
+recent_files: file:///dos/z/16/src/lib/dos_opl2.cpp
+recent_files: file:///dos/z/16/src/timer.cpp
+recent_files: file:///dos/z/16/src/timer.h
+recent_files: file:///dos/z/16/src/main.cpp
+recent_files: file:///dos/z/16/doc/ojoww.cpp
+recent_files: file:///dos/z/16/src/engine.h
+recent_files: file:///dos/z/16/src/lib/lib_com.cpp
+recent_files: file:///dos/z/16/src/lib/lib_com.h
+recent_files: file:///dos/z/16/src/lib/opl2.h
+recent_files: file:///dos/z/16/doc/char.txt
+snr_replacetype: 0
+savedir: file:///dos/z/16/doc
+spell_check_default: 1
+spell_insert_entities: 0
+last_filefilter: 
+htmlbar_notebooktab: 0
+view_blockstack: 1
+snr_escape_chars: 0
+htmlbar_view: 0
+spell_lang: en
+ssearch_dotmatchall: 0
+searchlist: keynum
+searchlist: key
+searchlist: scankey
+searchlist: keep
+searchlist: keer
+searchlist: keyWasPressed
+searchlist: keyIsPressed
+searchlist: scanCode
+searchlist: KeyPressed
+searchlist: kee
+autocomplete: 1
+outputb_show_all_output: 0
+bookmarks_show_mode: 0
+snippets_show_as_menu: 1
+adv_open_recursive: 0
+encoding: UTF-8
+e2c.convert_special: 0
+autoindent: 1
+fb_viewmode: 0
 filegloblist: *.xml
 filegloblist: *.txt
 filegloblist: *.shtml
@@ -23,125 +139,14 @@ filegloblist: *.cpp
 filegloblist: *.cgi
 filegloblist: *.c
 fb_focus_follow: 1
-adv_open_recursive: 0
-encoding: UTF-8
-autoindent: 1
-e2c.convert_special: 0
-fb_viewmode: 0
-htmlbar_view: 0
-snippets_show_as_menu: 1
-bookmarks_show_mode: 0
-outputb_show_all_output: 0
-autocomplete: 1
-searchlist: keynum
-searchlist: key
-searchlist: scankey
-searchlist: keep
-searchlist: keer
-searchlist: keyWasPressed
-searchlist: keyIsPressed
-searchlist: scanCode
-searchlist: KeyPressed
-searchlist: kee
-spell_lang: en
-snr_escape_chars: 0
-view_blockstack: 1
-htmlbar_notebooktab: 0
-last_filefilter: 
-spell_insert_entities: 0
-spell_check_default: 1
-savedir: file:///dos/z/16/doc
-files: /dos/z/16/doc/project.txt
-files: /dos/z/16/src/eng_core.cpp
-files: /dos/z/16/src/eng_core.h
-files: /dos/z/16/src/eng_comm.cpp
-files: /dos/z/16/src/eng_comm.h
-files: /dos/z/16/src/lib/dos_comm.c
-files: /dos/z/16/src/lib/dos_comm.h
-files: /dos/z/16/src/eng_gfx.cpp
-files: /dos/z/16/src/eng_gfx.h
-files: /dos/z/16/src/lib/dos_gfx.cpp
-files: /dos/z/16/src/lib/dos_gfx.h
-files: /dos/z/16/src/eng_snd.cpp
-files: /dos/z/16/src/eng_snd.h
-files: /dos/z/16/src/lib/dos_opl2.cpp
-files: /dos/z/16/src/lib/opl2.h
-files: /dos/z/16/src/lib/lib_com.cpp
-files: /dos/z/16/src/lib/lib_com.h
-files: /dos/z/16/src/eng_ai.cpp
-files: /dos/z/16/src/eng_ai.h
-files: /dos/z/16/src/timer.cpp
-files: /dos/z/16/src/timer.h
-files: /dos/z/16/src/engine.h
-files: /dos/z/16/src/main.cpp
-files: /dos/z/16/doc/ojoww.cpp
-files: /dos/z/16/doc/char.txt
-snr_replacetype: 0
-recent_files: file:///dos/z/16/doc/ojoww.cpp
-recent_files: file:///dos/z/16/src/engine.h
-recent_files: file:///dos/z/16/src/timer.h
-recent_files: file:///dos/z/16/src/main.cpp
-recent_files: file:///dos/z/16/src/timer.cpp
-recent_files: file:///dos/z/16/doc/char.txt
-recent_files: file:///dos/z/16/src/eng_ai.h
-recent_files: file:///dos/z/16/src/eng_ai.cpp
-recent_files: file:///dos/z/16/src/lib/lib_com.h
-recent_files: file:///dos/z/16/src/lib/lib_com.cpp
-recent_files: file:///dos/z/16/src/lib/dos_opl2.cpp
-recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp
-recent_files: file:///dos/z/16/src/eng_comm.cpp
-recent_files: file:///dos/z/16/src/eng_gfx.h
-recent_files: file:///dos/z/16/src/lib/dos_comm.h
-recent_files: file:///dos/z/16/src/lib/dos_comm.c
-recent_files: file:///dos/z/16/src/eng_snd.h
-recent_files: file:///dos/z/16/src/eng_comm.h
-recent_files: file:///dos/z/16/src/lib/opl2.h
-recent_files: file:///dos/z/16/src/lib/dos_gfx.h
-recent_files: file:///dos/z/16/src/eng_snd.cpp
-recent_files: file:///dos/z/16/src/eng_core.h
-recent_files: file:///dos/z/16/src/eng_gfx.cpp
-recent_files: file:///dos/z/16/src/eng_core.cpp
-recent_files: file:///dos/z/16/doc/project.txt
-recent_files: file:///dos/z/16/remake.sh
-recent_files: file:///dos/z/16/16.sh
-recent_files: file:///dos/z/16/16.bat
-recent_files: file:///dos/z/16/remake.bat
-recent_files: file:///dos/z/16/ojowwww.cpp
-charmap_block: 11
-e2c.convert_iso: 0
-enable_syntax_scan: 1
-outputb_scroll_mode: 0
-leftpanel_active_tab: 1
-c2e.IE_apos_workaround: 0
-display_right_margin: 0
-replacelist: NUM_SCANCODES
-replacelist: keer
-replacelist: keep
-replacelist: kee
-replacelist: keyp
-template: /usr/share/bluefish/templates/C_Header_GPL
-editor_tab_width: 4
-view_statusbar: 1
-fb_show_hidden_f: 0
-convertcolumn_fillempty: 
-convertcolumn_separator: 
-name: Project 16
-view_blocks: 1
-snr_casesens: 0
-c2e.convert_iso: 0
-bookmarks_filename_mode: 1
-wrap_text_default: 0
-opendir: file:///dos/z/16/doc
-e2c.convert_xml: 1
-default_mime_type: text/plain
-view_left_panel: 0
-htmlbar_thumbnailwidth: 300
-fb_show_backup_f: 0
-view_line_numbers: 1
-show_mbhl: 1
-adv_open_matchname: 0
-convertcolumn_horizontally: 0
-snr_recursion_level: 0
+ssearch_unescape: 0
+c2e.convert_symbol: 0
+snr_dotmatchall: 0
+c2e.convert_xml: 1
+editor_indent_wspaces: 0
+view_cline: 0
+snr_type: 0
+snr_scope: 0
+bmarksearchmode: 0
+view_main_toolbar: 1
 e2c.convert_symbol: 0
-e2c.convert_num: 0
-c2e.convert_special: 0