aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/ss_blank.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/ss_blank.cpp')
-rw-r--r--engines/avalanche/ss_blank.cpp60
1 files changed, 33 insertions, 27 deletions
diff --git a/engines/avalanche/ss_blank.cpp b/engines/avalanche/ss_blank.cpp
index 907c09f91c..04f0da9e6b 100644
--- a/engines/avalanche/ss_blank.cpp
+++ b/engines/avalanche/ss_blank.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
@@ -33,34 +33,40 @@ namespace Avalanche {
byte fv;
boolean test;
-boolean the_cows_come_home()
-{
- registers rmove,rclick;
-boolean the_cows_come_home_result;
-;
- rmove.ax=11; intr(0x33,rmove);
- rclick.ax=3; intr(0x33,rclick);
- the_cows_come_home_result=
- (keypressed()) | /* key pressed */
- (rmove.cx>0) || /* mouse moved */
- (rmove.dx>0) ||
- (rclick.bx>0); /* button clicked */
-return the_cows_come_home_result;
+boolean the_cows_come_home() {
+ registers rmove, rclick;
+ boolean the_cows_come_home_result;
+ ;
+ rmove.ax = 11;
+ intr(0x33, rmove);
+ rclick.ax = 3;
+ intr(0x33, rclick);
+ the_cows_come_home_result =
+ (keypressed()) | /* key pressed */
+ (rmove.cx > 0) || /* mouse moved */
+ (rmove.dx > 0) ||
+ (rclick.bx > 0); /* button clicked */
+ return the_cows_come_home_result;
}
-int main(int argc, const char* argv[])
-{pio_initialize(argc, argv);
-;
- test=the_cows_come_home();
- textattr=0; clrscr;
- do {; } while (!the_cows_come_home());
- textattr=30; clrscr;
- output << "*** Blank Screen *** (c) 1992, Thomas Thurman. (An Avvy Screen Saver.)" << NL;
- for( fv=1; fv <= 46; fv ++) output << '~'; output << NL;
- output << "This program may be freely copied." << NL;
- output << NL;
- output << "Have fun!" << NL;
-return EXIT_SUCCESS;
+int main(int argc, const char *argv[]) {
+ pio_initialize(argc, argv);
+ ;
+ test = the_cows_come_home();
+ textattr = 0;
+ clrscr;
+ do {
+ ;
+ } while (!the_cows_come_home());
+ textattr = 30;
+ clrscr;
+ output << "*** Blank Screen *** (c) 1992, Thomas Thurman. (An Avvy Screen Saver.)" << NL;
+ for (fv = 1; fv <= 46; fv ++) output << '~';
+ output << NL;
+ output << "This program may be freely copied." << NL;
+ output << NL;
+ output << "Have fun!" << NL;
+ return EXIT_SUCCESS;
}
} // End of namespace Avalanche. \ No newline at end of file