Normal quotes
This commit is contained in:
parent
5e10794a24
commit
18011c595a
352 changed files with 6040 additions and 6040 deletions
10
32-03.md
10
32-03.md
|
|
@ -48,7 +48,7 @@
|
|||
/* Draw the line */
|
||||
Draw360x480Dot(X0, Y0, Color); /* draw the first pixel */
|
||||
while ( DeltaX-- ) {
|
||||
/* See if it’s time to advance the Y coordinate */
|
||||
/* See if it's time to advance the Y coordinate */
|
||||
if ( ErrorTerm >= 0 ) {
|
||||
/* Advance the Y coordinate & adjust the error term
|
||||
back down */
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
Draw360x480Dot(X0, Y0, Color);/* draw the first pixel */
|
||||
while ( DeltaY-- ) {
|
||||
/* See if it’s time to advance the X coordinate */
|
||||
/* See if it's time to advance the X coordinate */
|
||||
if ( ErrorTerm >= 0 ) {
|
||||
/* Advance the X coordinate & adjust the error term
|
||||
back down */
|
||||
|
|
@ -198,19 +198,19 @@
|
|||
VectorsUp(X_MAX * 3 / 4, Y_MAX * 3 / 4, X_MAX / 4, Y_MAX / 4, 4);
|
||||
|
||||
/* Wait for the enter key to be pressed */
|
||||
scanf(“%c”, &temp);
|
||||
scanf("%c", &temp);
|
||||
|
||||
/* Back to text mode */
|
||||
_AX = TEXT_MODE;
|
||||
geninterrupt(BIOS_VIDEO_INT);
|
||||
}
|
||||
|
||||
The first thing you’ll notice when you run this code is that the speed
|
||||
The first thing you'll notice when you run this code is that the speed
|
||||
of 360x480 256-color mode is pretty good, especially considering that
|
||||
most of the program is im-plemented in C.
|
||||
|
||||
------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
 *Drawing in 360x480 256-color mode can sometimes actually be faster than in the 16-color modes, because the byte-per-pixel display memory organization of 256-color mode eliminates the need to read display memory before writing to it in order to isolate individual pixels coexisting within a single byte. In addition, 360x480 256-color mode is a variant of Mode X, which we’ll encounter in detail in Chapter 47, and supports all the high-performance features of Mode X.*
|
||||
 *Drawing in 360x480 256-color mode can sometimes actually be faster than in the 16-color modes, because the byte-per-pixel display memory organization of 256-color mode eliminates the need to read display memory before writing to it in order to isolate individual pixels coexisting within a single byte. In addition, 360x480 256-color mode is a variant of Mode X, which we'll encounter in detail in Chapter 47, and supports all the high-performance features of Mode X.*
|
||||
------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
------------------------ --------------------------------- --------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue