aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/sunrise.cpp
diff options
context:
space:
mode:
authoruruk2013-06-18 10:23:29 +0200
committeruruk2013-06-18 10:23:29 +0200
commit38bc20a0763f0f83ea3c0a94a68a1edea0d08514 (patch)
tree8d71d5d2dec96e83e2fcce7c5378e9f2da94130e /engines/avalanche/sunrise.cpp
parenta3025b8dad7abfe845c57aee3703451c223fc2e6 (diff)
downloadscummvm-rg350-38bc20a0763f0f83ea3c0a94a68a1edea0d08514.tar.gz
scummvm-rg350-38bc20a0763f0f83ea3c0a94a68a1edea0d08514.tar.bz2
scummvm-rg350-38bc20a0763f0f83ea3c0a94a68a1edea0d08514.zip
AVALANCHE: Use Artistic Style.
Diffstat (limited to 'engines/avalanche/sunrise.cpp')
-rw-r--r--engines/avalanche/sunrise.cpp95
1 files changed, 53 insertions, 42 deletions
diff --git a/engines/avalanche/sunrise.cpp b/engines/avalanche/sunrise.cpp
index a5c6b28d9b..7baa88fe87 100644
--- a/engines/avalanche/sunrise.cpp
+++ b/engines/avalanche/sunrise.cpp
@@ -11,7 +11,7 @@
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
@@ -30,56 +30,67 @@
namespace Avalanche {
-integer gd,gm;
+integer gd, gm;
longint tskellern /*absolute $0:244*/; /* Over int $61 */
-void hold()
-{;
- do {; } while (!(tskellern>=1));
- tskellern=0;
+void hold() {
+ ;
+ do {
+ ;
+ } while (!(tskellern >= 1));
+ tskellern = 0;
}
-int main(int argc, const char* argv[])
-{pio_initialize(argc, argv);
-;
- gd=3; gm=1; initgraph(gd,gm,"c:\\bp\\bgi");
+int main(int argc, const char *argv[]) {
+ pio_initialize(argc, argv);
+ ;
+ gd = 3;
+ gm = 1;
+ initgraph(gd, gm, "c:\\bp\\bgi");
- setvisualpage(1);
- setfillstyle(1,1);
- for( gd=1; gd <= 640; gd ++)
- bar(gd,177+trunc(20*sin((real)(gd)/39)),gd,350);
- setfillstyle(1,3); setcolor(3);
- fillellipse(320,277,60,50);
- settextjustify(1,1); settextstyle(0,0,2); setcolor(9);
- outtextxy(320,50,"The sun rises over Hertfordshire...");
- settextjustify(2,0); settextstyle(0,0,1); setcolor(0);
- outtextxy(635,350,"Press any key...");
+ setvisualpage(1);
+ setfillstyle(1, 1);
+ for (gd = 1; gd <= 640; gd ++)
+ bar(gd, 177 + trunc(20 * sin((real)(gd) / 39)), gd, 350);
+ setfillstyle(1, 3);
+ setcolor(3);
+ fillellipse(320, 277, 60, 50);
+ settextjustify(1, 1);
+ settextstyle(0, 0, 2);
+ setcolor(9);
+ outtextxy(320, 50, "The sun rises over Hertfordshire...");
+ settextjustify(2, 0);
+ settextstyle(0, 0, 1);
+ setcolor(0);
+ outtextxy(635, 350, "Press any key...");
- setpalette(0,egablue);
- setpalette(1,egagreen);
- setpalette(2,egayellow);
- setpalette(3,egagreen);
- setpalette(9,egalightblue);
- setpalette(11,egalightblue);
- setvisualpage(0);
+ setpalette(0, egablue);
+ setpalette(1, egagreen);
+ setpalette(2, egayellow);
+ setpalette(3, egagreen);
+ setpalette(9, egalightblue);
+ setpalette(11, egalightblue);
+ setvisualpage(0);
- port[0x3c4]=2; port[0x3ce]=4;
- port[0x3c5]=1 << 1; port[0x3cf]=1;
+ port[0x3c4] = 2;
+ port[0x3ce] = 4;
+ port[0x3c5] = 1 << 1;
+ port[0x3cf] = 1;
- for( gm=227; gm >= 1; gm --) /* <<< try running this loop the other way round! */
- {;
- move(mem[0xa000*gm*80+80],mem[0xa000*gm*80],8042);
- hold();
- if (keypressed()) return 0;
- }
+ for (gm = 227; gm >= 1; gm --) { /* <<< try running this loop the other way round! */
+ ;
+ move(mem[0xa000 * gm * 80 + 80], mem[0xa000 * gm * 80], 8042);
+ hold();
+ if (keypressed()) return 0;
+ }
- for( gm=101; gm >= 1; gm --)
- {;
- move(mem[0xa000*80],mem[0xa000*0],gm*80);
- hold();
- if (keypressed()) return 0;
- }
-return EXIT_SUCCESS;
+ for (gm = 101; gm >= 1; gm --) {
+ ;
+ move(mem[0xa000 * 80], mem[0xa000 * 0], gm * 80);
+ hold();
+ if (keypressed()) return 0;
+ }
+ return EXIT_SUCCESS;
}
} // End of namespace Avalanche. \ No newline at end of file