Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for games/3do-view/3do-view.c between version 1.5 and 1.6

version 1.5, 2003/06/22 18:40:33 version 1.6, 2003/06/27 02:18:30
Line 1 
Line 1 
 /* $Platon: games/3do-view/3do-view.c,v 1.4 2003/05/21 13:58:30 nepto Exp $ */  /* $Platon: games/3do-view/3do-view.c,v 1.5 2003/06/22 18:40:33 nepto Exp $ */
   
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
Line 11 
Line 11 
 #  include <dos2linux.h>  #  include <dos2linux.h>
 #endif  #endif
   
 #if PLATON_SYSTEM_MSDOS  #if PLATON_SYSTEM_MSDOS || PLATON_SYSTEM_WIN32
 #  include <conio.h>  #  include <conio.h>
 #  include <dos.h>  #  include <dos.h>
   #endif
   
   #if PLATON_SYSTEM_WIN32
   #  include <dos2win32.h>
   #  include <winbgim.h>
   #  include <direct.h>
   #endif
   
   #if PLATON_SYSTEM_MSDOS
 #  include <dir.h>  #  include <dir.h>
 #endif  #endif
   
Line 95  void ERROR2(void) /* {{{ */
Line 104  void ERROR2(void) /* {{{ */
 void intface(void) /* {{{ */  void intface(void) /* {{{ */
 {  {
         hidemouse();          hidemouse();
         setfillstyle(0,0);          setfillstyle(1, 0);
         rectangle(479,0,639,479);          rectangle(479,0,639,479);
         bar(480,1,638,478);          bar(480,1,638,478);
         rectangle(486,27,633,80);          rectangle(486,27,633,80);
Line 121  void intface(void) /* {{{ */
Line 130  void intface(void) /* {{{ */
 void run(void) /* {{{ */  void run(void) /* {{{ */
 {  {
         hidemouse();          hidemouse();
         setfillstyle(0,0);          setfillstyle(1, 0);
         bar(480,1,638,478);          bar(480,1,638,478);
         outtextxy(559,16,"AUTOMAT. OTACANIE");          outtextxy(559,16,"AUTOMAT. OTACANIE");
         rectangle(486,387,633,440);          rectangle(486,387,633,440);
Line 183  void STOP(void) /* {{{ */
Line 192  void STOP(void) /* {{{ */
 void manual(void) /* {{{ */  void manual(void) /* {{{ */
 {  {
         hidemouse();          hidemouse();
         setfillstyle(0,0);          setfillstyle(1, 0);
         bar(480,1,638,478);          bar(480,1,638,478);
         STOP();          STOP();
         rectangle(486,40,526,70);          rectangle(486,40,526,70);
Line 267  void file_selector(int mode, int item) /
Line 276  void file_selector(int mode, int item) /
                         || mode == MODE_SELECTED_DIRECTORY_MOVE                          || mode == MODE_SELECTED_DIRECTORY_MOVE
                         || mode == MODE_SELECTED_FILE_MOVE) {                          || mode == MODE_SELECTED_FILE_MOVE) {
                 hidemouse();                  hidemouse();
                 setfillstyle(0,0);                  setfillstyle(1, 0);
                 bar(480,1,638,478);                  bar(480,1,638,478);
                 outtextxy(559,16,"OTVORENIE SUBORU");                  outtextxy(559,16,"OTVORENIE SUBORU");
                 rectangle(486,387,633,440);                  rectangle(486,387,633,440);
Line 328  void file_selector(int mode, int item) /
Line 337  void file_selector(int mode, int item) /
 void info(void) /* {{{ */  void info(void) /* {{{ */
 {  {
         hidemouse();          hidemouse();
         setfillstyle(0,0);          setfillstyle(1, 0);
         bar(480,1,638,478);          bar(480,1,638,478);
         outtextxy(559,16,"INFORMACIE");          outtextxy(559,16,"INFORMACIE");
         rectangle(486,387,633,440);          rectangle(486,387,633,440);
Line 342  void info(void) /* {{{ */
Line 351  void info(void) /* {{{ */
 void quit(void) /* {{{ */  void quit(void) /* {{{ */
 {  {
         hidemouse();          hidemouse();
         setfillstyle(0,0);          setfillstyle(1, 0);
         bar(480,1,638,478);          bar(480,1,638,478);
         rectangle(486,387,633,440);          rectangle(486,387,633,440);
         rectangle(486,297,633,350);          rectangle(486,297,633,350);
Line 424  void posun(void) /* {{{ */
Line 433  void posun(void) /* {{{ */
 BYTE isinbar(int x1,int y1,int x2,int y2) /* {{{ */  BYTE isinbar(int x1,int y1,int x2,int y2) /* {{{ */
 {  {
         WORD xx,yy;          WORD xx,yy;
         if ((x1>x2)&&(y1>y2)) {          if (getmousepos(&xx, &yy) != 1)
                 if ((getmousepos(&xx,&yy)==1)&&(xx<x1)&&(xx>x2)&&(yy<y1)&&(yy>y2))return(1);                  return 0;
                 else return(0);          if (x1 > x2 && y1 > y2) return xx < x1 && xx > x2 && yy < y1 && yy > y2;
         }          if (x1 > x2 && y1 < y2) return xx < x1 && xx > x2 && yy < y2 && yy > y1;
         if ((x1>x2)&&(y1<y2)) {          if (x1 < x2 && y1 > y2) return xx < x2 && xx > x1 && yy < y1 && yy > y2;
                 if ((getmousepos(&xx,&yy)==1)&&(xx<x1)&&(xx>x2)&&(yy<y2)&&(yy>y1))return(1);          if (x1 < x2 && y1 < y2) return xx < x2 && xx > x1 && yy < y2 && yy > y1;
                 else return(0);          return 0;
         }  
         if ((x1<x2)&&(y1>y2)) {  
                 if ((getmousepos(&xx,&yy)==1)&&(xx<x2)&&(xx>x1)&&(yy<y1)&&(yy>y2))return(1);  
                 else return(0);  
         }  
         if ((x1<x2)&&(y1<y2)) {  
                 if ((getmousepos(&xx,&yy)==1)&&(xx<x2)&&(xx>x1)&&(yy<y2)&&(yy>y1))return(1);  
                 else return(0);  
         }  
         return(0);  
 } /* }}} */  } /* }}} */
   
 /**************************** OPEN 3DO FILE *********************************/  /**************************** OPEN 3DO FILE *********************************/
Line 657  int main(int argc,char *argv[]) /* {{{ *
Line 656  int main(int argc,char *argv[]) /* {{{ *
         textcolor(11);cputs("Stefan Soun ");          textcolor(11);cputs("Stefan Soun ");
         textcolor(0x07);cputs("a.k.a. ");          textcolor(0x07);cputs("a.k.a. ");
         textcolor(128+0x0f);cputs("Pysta");          textcolor(128+0x0f);cputs("Pysta");
           cputs("\r\n");
         return 0;          return 0;
 } /* }}} */  } /* }}} */
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top