X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vl_2.c;h=ff339620c7c57e0a956b8d29eba325239ee7a98b;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=288a8c6689ed3b1278223534fae8fd9d151ea1e4;hpb=99ff9b1e8a8ef76386572f4576aa04f2e60b9010;p=16.git diff --git a/src/lib/16_vl_2.c b/src/lib/16_vl_2.c index 288a8c66..ff339620 100755 --- a/src/lib/16_vl_2.c +++ b/src/lib/16_vl_2.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -25,17 +25,14 @@ #include #include "src/lib/16_vl.h" -// big global status text buffer -char global_temp_status_text[512]; -char global_temp_status_text2[512]; - #define PRINTTEXTBOXSTABLE void VL_modexPrintTextBox(global_game_variables_t *gvar) { -#define PRINTTEXTBOXW gvar->video.page[0].sw -#define PRINTTEXTBOXH 160 -#define PRINTTEXTBOXSIZE 20480//51200 +#define PRINTTEXTBOXW gvar->video.page[0].width +#define PRINTTEXTBOXH gvar->video.page[0].height-96 +#define PRINTTEXTBOXY 160-48//112//184//gvar->video.page[0].height-100-16 +//#define PRINTTEXTBOXSIZE 20480//51200 #define PRINTTEXTBOXHLINE 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD//, 0xCD, 0xCD, 0xCD, 0xCD #define PRINTTEXTBOXHLINETOP 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCB, 0xCD, PRINTTEXTBOXHLINE #define PRINTTEXTBOXHLINEBOTTOM 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCD, 0xCA, 0xCD, PRINTTEXTBOXHLINE @@ -54,7 +51,7 @@ void VL_modexPrintTextBox(global_game_variables_t *gvar) word x = gvar->video.page[/*!*/(gvar->video.p)].dx; //(gv->video.page[(gv->video.p)].tlx) - // follow the screen word y = gvar->video.page[/*!*/(gvar->video.p)].dy; //(gv->video.page[(gv->video.p)].tly) - // follow the screen word col = 3, bgcol = 0, type = 1;//w = 64, h = 8, - word v = gvar->video.page[0].height-PRINTTEXTBOXH; //vertical offset + word v = PRINTTEXTBOXY; //vertical offset nibble i; boolean done; ScanCode scan; @@ -63,12 +60,11 @@ void VL_modexPrintTextBox(global_game_variables_t *gvar) word q; #endif //backuppart - modexCopyPageRegion(&gvar->video.page[1], &gvar->video.page[0], - x, - gvar->video.page[0].height-PRINTTEXTBOXH, - x, - gvar->video.page[0].height-PRINTTEXTBOXH, + 0, + PRINTTEXTBOXY, + 0, + PRINTTEXTBOXY, PRINTTEXTBOXW, PRINTTEXTBOXH); // memcpy(&textboxbuff, gvar->video.page[0].data, PRINTTEXTBOXSIZE); // mxOutText(xpos+1, ypos+gvar.video.page[0].height-40, "| |Chikyuu:$line1"); @@ -96,6 +92,7 @@ void VL_modexPrintTextBox(global_game_variables_t *gvar) sprintf(global_temp_status_text, "%s", str3); modexprint(&(gvar->video.page[(gvar->video.p)]), x, y+gvar->video.page[0].height-v, type, 1, col, bgcol, 1, global_temp_status_text); //PRINT TEXT +// sprintf(global_temp_status_text, "%c", 0x07); modexprint(&(gvar->video.page[(gvar->video.p)]), x, y+gvar->video.page[0].height-v, type, 1, col, bgcol, 1, global_temp_status_text); for (i = 0,done = false;!done;) { while (!(scan = gvar->in.inst->LastScan)) @@ -117,10 +114,10 @@ void VL_modexPrintTextBox(global_game_variables_t *gvar) } modexCopyPageRegion(&gvar->video.page[0], &gvar->video.page[1], - x, - gvar->video.page[0].height-PRINTTEXTBOXH, - x, - gvar->video.page[0].height-PRINTTEXTBOXH, + 0, + PRINTTEXTBOXY, + 0, + PRINTTEXTBOXY, PRINTTEXTBOXW, PRINTTEXTBOXH); // memcpy(&gvar->video.page[0].data, &textboxbuff, PRINTTEXTBOXSIZE); }