Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
72272502
Commit
72272502
authored
Apr 20, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot about wl_text...
parent
8e70f4b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
25 deletions
+13
-25
Makefile
src/Makefile
+2
-1
id_in.h
src/id_in.h
+0
-8
wl_text.c
src/wl_text.c
+11
-16
No files found.
src/Makefile
View file @
72272502
...
...
@@ -6,7 +6,8 @@ CFLAGS = -g -DUSEVGA
#CFLAGS = -g -pg -DDEBUG
OBJS
=
objs.o misc.o id_ca.o id_in.o id_sd.o id_vl.o id_vh.o id_us.o
\
wl_scale.o wl_draw.o wl_act1.o wl_act2.o wl_agent.o wl_game.o
\
wl_inter.o wl_menu.o wl_play.o wl_state.o wl_main.o wl_debug.o
wl_inter.o wl_menu.o wl_play.o wl_state.o wl_text.o wl_main.o
\
wl_debug.o
#LFLAGS = -lm -lvga -pg
LFLAGS
=
-lm
-lvga
...
...
src/id_in.h
View file @
72272502
...
...
@@ -89,14 +89,6 @@ typedef byte ScanCode;
#define key_Tab 0x09
#define key_Delete 0x7f
// Stuff for the mouse
#define MReset 0
#define MButtons 3
#define MDelta 11
#define MouseInt 0x33
#define Mouse(x) _AX = x,geninterrupt(MouseInt)
typedef
enum
{
ctrl_Keyboard
,
ctrl_Joystick
,
...
...
src/wl_text.c
View file @
72272502
/
/ WL_TEXT.C
/
* wl_text.c */
#include "WL_DEF.H"
#pragma hdrstop
#include "wl_def.h"
/*
=============================================================================
...
...
@@ -351,28 +350,28 @@ void HandleCtrls (void)
void
HandleWord
(
void
)
{
char
word
[
WORDLIMIT
];
int
i
,
wordindex
;
unsigned
wwidth
,
wheight
,
newpos
;
char
words
[
WORDLIMIT
];
int
i
,
wordindex
;
word
wwidth
,
wheight
,
newpos
;
//
// copy the next word into
[word
]
// copy the next word into
words[
]
//
word
[
0
]
=
*
text
++
;
word
s
[
0
]
=
*
text
++
;
wordindex
=
1
;
while
(
*
text
>
32
)
{
word
[
wordindex
]
=
*
text
++
;
word
s
[
wordindex
]
=
*
text
++
;
if
(
++
wordindex
==
WORDLIMIT
)
Quit
(
"PageLayout: Word limit exceeded"
);
}
word
[
wordindex
]
=
0
;
// stick a null at end for C
word
s
[
wordindex
]
=
0
;
// stick a null at end for C
//
// see if it fits on this line
//
VW_MeasurePropString
(
word
,
&
wwidth
,
&
wheight
);
VW_MeasurePropString
(
word
s
,
&
wwidth
,
&
wheight
);
while
(
px
+
wwidth
>
rightmargin
[
rowon
])
{
...
...
@@ -385,7 +384,7 @@ void HandleWord (void)
// print it
//
newpos
=
px
+
wwidth
;
VWB_DrawPropString
(
word
);
VWB_DrawPropString
(
word
s
);
px
=
newpos
;
//
...
...
@@ -796,8 +795,6 @@ void EndText (void)
SETFONTCOLOR
(
0
,
15
);
IN_ClearKeysDown
();
if
(
MousePresent
)
Mouse
(
MDelta
);
// Clear accumulated mouse movement
FreeMusic
();
CA_DownLevel
();
...
...
@@ -816,8 +813,6 @@ void EndText (void)
VW_FadeOut
();
SETFONTCOLOR
(
0
,
15
);
IN_ClearKeysDown
();
if
(
MousePresent
)
Mouse
(
MDelta
);
// Clear accumulated mouse movement
FreeMusic
();
CA_DownLevel
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment