// have it do 16 for one frame, then 17 for two others. Then it should average
// out to 1/60s per frame every 3 frames.
frameCount = (frameCount + 1) % 3;
-
uint32_t waitFrameTime = 17 - (frameCount == 0 ? 1 : 0);
while (SDL_GetTicks() - startTicks < waitFrameTime)
--- /dev/null
+/* CSS for Apple2 Web */
+
+/* for testing */
+/*div { border: 1px solid red; }*/
+
+body, table
+{
+ background: #006060;
+ color: #FFFFFF;
+ text-align: center; /* Crappy IE kludge */
+ font: 14.0pt Arial, Verdana, "Helvetica" sans-serif;
+}
+
+#title img
+{
+ margin-top: 22px;
+}
+
+#news td
+{
+ padding-bottom: 1em;
+}
+
+#compatibility
+{
+ border: 1px solid white;
+ border-spacing: 0;
+ margin-bottom: 1em;
+}
+
+#compatibility td
+{
+ vertical-align: top;
+ border: 1px solid white;
+ font-size: 85%;
+}
+
+.date
+{
+ width: 7em;
+ vertical-align: top;
+/* color: #FF6060;*/
+ color: #FF6020;
+}
+
+hr
+{
+ margin-bottom: 1.75em;
+}
+
+table, ul
+{
+ text-align: left;
+}
+
+p
+{
+ text-align: left;
+ margin-top: 0;
+ margin-bottom: 1em;
+}
+
+h1
+{
+ font-size: 300%;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+h2
+{
+ font-size: 200%;
+ margin-top: 1.25em;
+ margin-bottom: 0.75em;
+ color: #FFB000;
+ font-style: italic;
+}
+
+h3
+{
+ font-size: 120%;
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+tt
+{
+ font-size: 100%;
+}
+
+p#footer
+{
+ margin-top: 2.0em;
+ font-size: 75%;
+ font-style: italic;
+}
+
+a:link { color: #0090FF; text-decoration: underline; }
+a:visited { color: #6F006F; text-decoration: underline; }
+a:hover { color: #20B0FF; text-decoration: none; }
+a:active { color: #FFFFFF; text-decoration: underline; }
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<head>
+<title>Apple2: An Apple //e Emulator for Linux, Windows, and MacOS</title>
+
+<meta name="description" content="Apple2 homepage" />
+<meta name="keywords" content="apple, emulator, SDL, cross-platform, GPL" />
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="GENERATOR" content="Kate" />
+
+<link rel="stylesheet" href="apple2.css" type="text/css" />
+</head>
+
+<body class="mainpage">
+
+<span id="title">Apple2</span>
+
+<hr>
+
+<p>This is the home of the Apple2 portable Apple //e emulator. It's based on GCC and SDL2, and runs on Linux, Windows, and MacOS X. It's powered by Virtual 65C02<sup>TM</sup>, and sports an easy to use yet powerful interface.</p>
+
+<p>This emulator came about because of ApplePC. It was a DOS only application with a horrible interface, and you had to tune it to get it work at the correct speed for your machine, but it had absolutely to most accurate looking screen that I have even seen on an Apple emulator at that time and ever since. Current emulators <i>still</i> to this day can't match the fidelity of what that old DOS program could do. So, to make a long story even longer, ApplePC disappeared off the face of the earth and I thought it was a shame that the screen rendering of that emulator should disappear with it. Also, there are, for some reason, absolutely no Apple II emulators for Linux! A deplorable situation! And so I resolved to fix that situation by figuring out how ApplePC did its video tricks and by writing an emulator for Linux.</p>
+
+<p>Currently, only a source code archive is available. More will be coming in the near future... You can get a copy of the source code like so:</p>
+
+<p><tt>git clone http://shamusworld.gotdns.org/git/apple2</tt></p>
+
+</body>
+</html>
+