Home
last modified time | relevance | path

Searched refs:CharPos (Results 1 – 25 of 195) sorted by relevance

12345678

/dports/games/spacejunk/spacejunk-1.0.5/libinfo/
H A DSFont.c86 Font->CharPos[i++]=x; in SFont_InitFont()
89 Font->CharPos[i++]=x; in SFont_InitFont()
93 Font->CharPos[i]=x; in SFont_InitFont()
129 x += Font->CharPos[2]-Font->CharPos[1]; in SFont_Write()
134 (Font->CharPos[charoffset+2] + Font->CharPos[charoffset+1])/2 - in SFont_Write()
135 (Font->CharPos[charoffset] + Font->CharPos[charoffset-1])/2; in SFont_Write()
136 srcrect.x = (Font->CharPos[charoffset]+Font->CharPos[charoffset-1])/2; in SFont_Write()
138 - Font->CharPos[charoffset-1])/2; in SFont_Write()
142 x += Font->CharPos[charoffset+1] - Font->CharPos[charoffset]; in SFont_Write()
159 width += Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth()
[all …]
/dports/games/rockdodger/rockdodger-1.1.4/
H A DSFont.c92 xwide += (int) (Font->CharPos[2] - Font->CharPos[1]); in SFont_wide()
95 xwide += (int) (Font->CharPos[ofs + 1] - Font->CharPos[ofs]); in SFont_wide()
114 x += Font->CharPos[2] - Font->CharPos[1]; in PutString2()
120 (Font->CharPos[ofs + 2] + Font->CharPos[ofs + 1]) / 2 - in PutString2()
121 (Font->CharPos[ofs] + Font->CharPos[ofs - 1]) / 2; in PutString2()
126 x - (float) (Font->CharPos[ofs] - Font->CharPos[ofs - 1]) / 2; in PutString2()
132 x += Font->CharPos[ofs + 1] - Font->CharPos[ofs]; in PutString2()
164 x += Font->CharPos[2] - Font->CharPos[1]; in TextWidth2()
168 x += Font->CharPos[ofs + 1] - Font->CharPos[ofs]; in TextWidth2()
172 return x + Font->CharPos[ofs + 2] - Font->CharPos[ofs + 1]; in TextWidth2()
[all …]
/dports/games/luola/luola-1.3.2/src/
H A DSFont.c51 Font->CharPos[i++]=x; in SFont_InitFont()
54 Font->CharPos[i++]=x; in SFont_InitFont()
107 x += Font->CharPos[2]-Font->CharPos[1]; in SFont_Write()
112 (Font->CharPos[charoffset+2] + Font->CharPos[charoffset+1])/2 - in SFont_Write()
113 (Font->CharPos[charoffset] + Font->CharPos[charoffset-1])/2; in SFont_Write()
114 srcrect.x = (Font->CharPos[charoffset]+Font->CharPos[charoffset-1])/2; in SFont_Write()
115 dstrect.x = x - (float)(Font->CharPos[charoffset] in SFont_Write()
116 - Font->CharPos[charoffset-1])/2; in SFont_Write()
133 x += Font->CharPos[charoffset+1] - Font->CharPos[charoffset]; in SFont_Write()
150 width += Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth()
[all …]
/dports/games/epiphany-game/epiphany-0.7.0/src/fonts/
H A DSFont.c86 Font->CharPos[i++]=x; in SFont_InitFont()
89 Font->CharPos[i++]=x; in SFont_InitFont()
127 x += Font->CharPos[2]-Font->CharPos[1]; in SFont_Write()
132 (Font->CharPos[charoffset+2] + Font->CharPos[charoffset+1])/2 - in SFont_Write()
133 (Font->CharPos[charoffset] + Font->CharPos[charoffset-1])/2; in SFont_Write()
134 srcrect.x = (Font->CharPos[charoffset]+Font->CharPos[charoffset-1])/2; in SFont_Write()
135 dstrect.x = x - (float)(Font->CharPos[charoffset] in SFont_Write()
136 - Font->CharPos[charoffset-1])/2; in SFont_Write()
140 x += Font->CharPos[charoffset+1] - Font->CharPos[charoffset]; in SFont_Write()
157 width += Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth()
[all …]
/dports/games/fishsupper/fishsupper-0.1.6/src/
H A DSFont.c90 Font->CharPos[i++]=x; in SFont_InitFont()
93 Font->CharPos[i++]=x; in SFont_InitFont()
131 x += Font->CharPos[2]-Font->CharPos[1]; in SFont_Write()
136 (Font->CharPos[charoffset+2] + Font->CharPos[charoffset+1])/2 - in SFont_Write()
137 (Font->CharPos[charoffset] + Font->CharPos[charoffset-1])/2; in SFont_Write()
138 srcrect.x = (Font->CharPos[charoffset]+Font->CharPos[charoffset-1])/2; in SFont_Write()
139 dstrect.x = ((short int) (x - (float)(Font->CharPos[charoffset] in SFont_Write()
140 - Font->CharPos[charoffset-1])/2)); in SFont_Write()
144 x += Font->CharPos[charoffset+1] - Font->CharPos[charoffset]; in SFont_Write()
161 width += Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth()
[all …]
/dports/games/gnujump/gnujump-1.0.8/src/
H A DSFont.c147 x += Font->CharPos[2] - Font->CharPos[1]; in SFont_Write()
152 (Font->CharPos[charoffset + 2] + Font->CharPos[charoffset + 1]) / 2 - in SFont_Write()
153 (Font->CharPos[charoffset] + Font->CharPos[charoffset - 1]) / 2; in SFont_Write()
155 (Font->CharPos[charoffset] + Font->CharPos[charoffset - 1]) / 2; in SFont_Write()
164 x += Font->CharPos[charoffset + 1] - Font->CharPos[charoffset]; in SFont_Write()
184 width += Font->CharPos[2] - Font->CharPos[1]; in SFont_TextWidth()
216 return (Font->CharPos[2] - Font->CharPos[1]); in charWidth()
218 return (Font->CharPos[charoffset + 1] - Font->CharPos[charoffset]); in charWidth()
359 (Font->CharPos[charoffset + 2] + Font->CharPos[charoffset + 1]) / 2 - in SFont_FillWith()
360 (Font->CharPos[charoffset] + Font->CharPos[charoffset - 1]) / 2; in SFont_FillWith()
[all …]
/dports/games/xgalaga-sdl/xgalaga-sdl-2.1.1.0-sdl/src/
H A DSFont.c97 Font->CharPos[i++]=x; in SFont_InitFont()
100 Font->CharPos[i++]=x; in SFont_InitFont()
136 x += Font->CharPos[2]-Font->CharPos[1]; in SFont_Write()
141 (Font->CharPos[charoffset+2] + Font->CharPos[charoffset+1])/2 - in SFont_Write()
142 (Font->CharPos[charoffset] + Font->CharPos[charoffset-1])/2; in SFont_Write()
143 srcrect.x = (Font->CharPos[charoffset]+Font->CharPos[charoffset-1])/2; in SFont_Write()
144 dstrect.x = x - (float)(Font->CharPos[charoffset] in SFont_Write()
145 - Font->CharPos[charoffset-1])/2; in SFont_Write()
149 x += Font->CharPos[charoffset+1] - Font->CharPos[charoffset]; in SFont_Write()
166 width += Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth()
[all …]
/dports/games/spacejunk/spacejunk-1.0.5/src/
H A DSFont.c118 Font->CharPos[i++]=x; in SFont_InitFont()
121 Font->CharPos[i++]=x; in SFont_InitFont()
125 Font->CharPos[i]=x; in SFont_InitFont()
166 x += Font->CharPos[2]-Font->CharPos[1]; in SFont_Write()
171 (Font->CharPos[charoffset+2] + Font->CharPos[charoffset+1])/2 - in SFont_Write()
172 (Font->CharPos[charoffset] + Font->CharPos[charoffset-1])/2; in SFont_Write()
173 srcrect.x = (Font->CharPos[charoffset]+Font->CharPos[charoffset-1])/2; in SFont_Write()
175 - Font->CharPos[charoffset-1])/2; in SFont_Write()
179 x += Font->CharPos[charoffset+1] - Font->CharPos[charoffset]; in SFont_Write()
199 width += Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth()
[all …]
/dports/games/xye/xye-0.12.2/src/
H A Dfont.cpp248 x += CharPos[2]-CharPos[1]; in Write()
253 (CharPos[charoffset+2] + CharPos[charoffset+1])/2 - in Write()
254 (CharPos[charoffset] + CharPos[charoffset-1])/2; in Write()
257 srcrect.x = (CharPos[charoffset]+CharPos[charoffset-1])/2; in Write()
268 x += CharPos[charoffset+1] - CharPos[charoffset]; in Write()
401 x += CharPos[2]-CharPos[1]; in WriteWrap()
407 (CharPos[charoffset] + CharPos[charoffset-1])/2; in WriteWrap()
421 x += CharPos[charoffset+1] - CharPos[charoffset]; in WriteWrap()
569 width += CharPos[2]-CharPos[1]; in TextWidth()
573 width += CharPos[charoffset+1] - CharPos[charoffset]; in TextWidth()
[all …]
/dports/games/penguin-command/penguin-command-1.6.11/src/
H A DSFont.c58 Font->CharPos[i++]=x; in InitFont2()
61 Font->CharPos[i++]=x; in InitFont2()
85 x+=Font->CharPos[2]-Font->CharPos[1]; in PutString2()
92 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in PutString2()
94 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in PutString2()
96 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in PutString2()
101 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in PutString2()
119 x+=Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth2()
124 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in SFont_TextWidth2()
/dports/games/pengpong/pengpong-0.3_13/
H A DSFont.c58 Font->CharPos[i++]=x; in InitFont2()
61 Font->CharPos[i++]=x; in InitFont2()
85 x+=Font->CharPos[2]-Font->CharPos[1]; in PutString2()
92 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in PutString2()
94 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in PutString2()
96 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in PutString2()
101 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in PutString2()
119 x+=Font->CharPos[2]-Font->CharPos[1]; in TextWidth2()
124 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in TextWidth2()
/dports/games/barrage/barrage-1.0.5/src/
H A DSFont.c60 Font->CharPos[i++]=x; in InitFont2()
63 Font->CharPos[i++]=x; in InitFont2()
87 x+=Font->CharPos[2]-Font->CharPos[1]; in PutString2()
95 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in PutString2()
97 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in PutString2()
99 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in PutString2()
104 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in PutString2()
122 x+=Font->CharPos[2]-Font->CharPos[1]; in TextWidth2()
128 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in TextWidth2()
/dports/games/black-box/black-box-1.4.8/src/
H A DSFont.c86 Font->CharPos[i++]=x; in InitFont2()
89 Font->CharPos[i++]=x; in InitFont2()
114 x+=Font->CharPos[2]-Font->CharPos[1]; in PutString2()
122 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in PutString2()
124 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in PutString2()
126 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in PutString2()
131 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in PutString2()
149 x+=Font->CharPos[2]-Font->CharPos[1]; in TextWidth2()
155 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in TextWidth2()
/dports/games/bumprace/karlb-bumprace-e73baa9e7465/src/
H A Dfont.c85 Font->CharPos[i++]=x; in InitFont2()
88 Font->CharPos[i++]=x; in InitFont2()
112 x+=Font->CharPos[2]-Font->CharPos[1]; in PutString2()
120 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in PutString2()
122 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in PutString2()
124 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in PutString2()
129 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in PutString2()
147 x+=Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth2()
153 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in SFont_TextWidth2()
/dports/games/nuclearchess/nuclearchess-1.0.0/src/
H A DSFont.c58 Font->CharPos[i++]=x; in InitFont2()
61 Font->CharPos[i++]=x; in InitFont2()
85 x+=Font->CharPos[2]-Font->CharPos[1]; in PutString2()
93 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in PutString2()
95 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in PutString2()
97 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in PutString2()
102 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in PutString2()
120 x+=Font->CharPos[2]-Font->CharPos[1]; in TextWidth2()
126 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in TextWidth2()
/dports/devel/cquery/cquery-20180718/src/
H A Dworking_files.cc562 lsPosition CharPos(const WorkingFile& file, in CharPos() function
635 REQUIRE(end_pos.line == CharPos(f, '.').line);
636 REQUIRE(end_pos.character == CharPos(f, '.').character);
640 REQUIRE(end_pos.line == CharPos(f, ' ').line);
641 REQUIRE(end_pos.character == CharPos(f, ' ').character);
645 REQUIRE(end_pos.line == CharPos(f, ' ').line);
650 REQUIRE(end_pos.line == CharPos(f, ' ').line);
655 REQUIRE(end_pos.line == CharPos(f, ' ').line);
668 REQUIRE(end_pos.line == CharPos(f, ' ').line);
673 REQUIRE(end_pos.line == CharPos(f, ' ').line);
[all …]
H A Dlex_utils.cc46 lsPosition CharPos(std::string_view search, in CharPos() function
293 lsPosition declaration = CharPos(buffer_content, 'F');
310 lsPosition declaration = CharPos(buffer_content, 'F');
322 lsPosition declaration = CharPos(buffer_content, '~');
334 lsPosition declaration = CharPos(buffer_content, 'F');
351 lsPosition declaration = CharPos(buffer_content, 'F');
368 lsPosition declaration = CharPos(buffer_content, 'F');
407 REQUIRE(LexIdentifierAroundPos(CharPos(content, 'y'), content) ==
413 REQUIRE(LexIdentifierAroundPos(CharPos(content, '1'), content) == "1");
414 REQUIRE(LexIdentifierAroundPos(CharPos(content, '2'), content) == "2");
[all …]
/dports/devel/p5-SDL/SDL-2.548/src/SDLx/
H A DSFont.xs106 Font->CharPos[i++]=x; in SFont_InitFont2()
109 Font->CharPos[i++]=x; in SFont_InitFont2()
133 x+=Font->CharPos[2]-Font->CharPos[1]; in SFont_PutString2()
140 …srcrect.w = dstrect.w = (Font->CharPos[ofs+2]+Font->CharPos[ofs+1])/2-(Font->CharPos[ofs]+Font->Ch… in SFont_PutString2()
142 srcrect.x = (Font->CharPos[ofs]+Font->CharPos[ofs-1])/2; in SFont_PutString2()
144 dstrect.x = x-(float)(Font->CharPos[ofs]-Font->CharPos[ofs-1])/2; in SFont_PutString2()
149 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in SFont_PutString2()
168 x+=Font->CharPos[2]-Font->CharPos[1]; in SFont_TextWidth2()
173 x+=Font->CharPos[ofs+1]-Font->CharPos[ofs]; in SFont_TextWidth2()
/dports/games/spacejunk/spacejunk-1.0.5/sge030809/
H A Dsge_bm_text.cpp114 font->CharPos = NULL; in sge_BF_CreateFont()
129 font->CharPos[i++]=x; in sge_BF_CreateFont()
134 font->CharPos[i++]=x; in sge_BF_CreateFont()
217 if(!font->CharPos) /* Fixed width */ in sge_BF_textout()
221 xdest += font->CharPos[2]-font->CharPos[1]; in sge_BF_textout()
225 xsrc = (font->CharPos[ofs]+font->CharPos[ofs-1])/2; in sge_BF_textout()
227 …font->CharWidth = (font->CharPos[ofs+2]+font->CharPos[ofs+1])/2-(font->CharPos[ofs]+font->CharPos[… in sge_BF_textout()
228 adv = font->CharPos[ofs+1]-font->CharPos[ofs]; in sge_BF_textout()
229 diff =float( (font->CharPos[ofs]-font->CharPos[ofs-1])/2.0 ); in sge_BF_textout()
314 if(font->CharPos) in sge_BF_CloseFont()
[all …]
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-718.0.0/src/source_map/
H A Dtests.rs81 assert_eq!(cp1, CharPos(22)); in t4()
84 assert_eq!(cp2, CharPos(0)); in t4()
95 assert_eq!(loc1.col, CharPos(10)); in t5()
100 assert_eq!(loc2.col, CharPos(0)); in t5()
123 assert_eq!(cp1, CharPos(3)); in t6()
126 assert_eq!(cp2, CharPos(4)); in t6()
129 assert_eq!(cp3, CharPos(12)); in t6()
132 assert_eq!(cp4, CharPos(15)); in t6()
174 LineInfo { line_index: 1, start_col: CharPos(4), end_col: CharPos(6) }, in span_to_snippet_and_lines_spanning_multiple_lines()
175 LineInfo { line_index: 2, start_col: CharPos(0), end_col: CharPos(3) }, in span_to_snippet_and_lines_spanning_multiple_lines()
[all …]
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-722.0.0/src/source_map/
H A Dtests.rs81 assert_eq!(cp1, CharPos(22)); in t4()
84 assert_eq!(cp2, CharPos(0)); in t4()
95 assert_eq!(loc1.col, CharPos(10)); in t5()
100 assert_eq!(loc2.col, CharPos(0)); in t5()
123 assert_eq!(cp1, CharPos(3)); in t6()
126 assert_eq!(cp2, CharPos(4)); in t6()
129 assert_eq!(cp3, CharPos(12)); in t6()
132 assert_eq!(cp4, CharPos(15)); in t6()
174 LineInfo { line_index: 1, start_col: CharPos(4), end_col: CharPos(6) }, in span_to_snippet_and_lines_spanning_multiple_lines()
175 LineInfo { line_index: 2, start_col: CharPos(0), end_col: CharPos(3) }, in span_to_snippet_and_lines_spanning_multiple_lines()
[all …]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_span/src/source_map/
H A Dtests.rs81 assert_eq!(cp1, CharPos(22)); in t4()
84 assert_eq!(cp2, CharPos(0)); in t4()
95 assert_eq!(loc1.col, CharPos(10)); in t5()
100 assert_eq!(loc2.col, CharPos(0)); in t5()
123 assert_eq!(cp1, CharPos(3)); in t6()
126 assert_eq!(cp2, CharPos(4)); in t6()
129 assert_eq!(cp3, CharPos(12)); in t6()
132 assert_eq!(cp4, CharPos(15)); in t6()
174 LineInfo { line_index: 1, start_col: CharPos(4), end_col: CharPos(6) }, in span_to_snippet_and_lines_spanning_multiple_lines()
175 LineInfo { line_index: 2, start_col: CharPos(0), end_col: CharPos(3) }, in span_to_snippet_and_lines_spanning_multiple_lines()
[all …]
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_span/src/source_map/
H A Dtests.rs81 assert_eq!(cp1, CharPos(22)); in t4()
84 assert_eq!(cp2, CharPos(0)); in t4()
95 assert_eq!(loc1.col, CharPos(10)); in t5()
100 assert_eq!(loc2.col, CharPos(0)); in t5()
123 assert_eq!(cp1, CharPos(3)); in t6()
126 assert_eq!(cp2, CharPos(4)); in t6()
129 assert_eq!(cp3, CharPos(12)); in t6()
132 assert_eq!(cp4, CharPos(15)); in t6()
174 LineInfo { line_index: 1, start_col: CharPos(4), end_col: CharPos(6) }, in span_to_snippet_and_lines_spanning_multiple_lines()
175 LineInfo { line_index: 2, start_col: CharPos(0), end_col: CharPos(3) }, in span_to_snippet_and_lines_spanning_multiple_lines()
[all …]
/dports/games/openmortal/openmortal-0.7/src/
H A Dsge_bm_text.cpp114 font->CharPos = NULL; in sge_BF_CreateFont()
127 font->CharPos[i++]=x; in sge_BF_CreateFont()
132 font->CharPos[i++]=x; in sge_BF_CreateFont()
215 if(!font->CharPos) /* Fixed width */ in sge_BF_textout()
221 xdest += font->CharPos[2]-font->CharPos[1]; in sge_BF_textout()
226 xsrc = (font->CharPos[ofs]+font->CharPos[ofs-1])/2; in sge_BF_textout()
228 …font->CharWidth = (font->CharPos[ofs+2]+font->CharPos[ofs+1])/2-(font->CharPos[ofs]+font->CharPos[… in sge_BF_textout()
229 adv = font->CharPos[ofs+1]-font->CharPos[ofs]; in sge_BF_textout()
230 diff =(font->CharPos[ofs]-font->CharPos[ofs-1])/2.0; in sge_BF_textout()
321 if(font->CharPos) in sge_BF_CloseFont()
[all …]
/dports/games/kobodeluxe/KoboDeluxe-0.5.1/graphics/
H A Dsofont.cpp9 CharPos = NULL; in SoFont()
24 delete[]CharPos; in ~SoFont()
295 delete[]CharPos; in load()
298 CharPos = new int[i]; in load()
316 spacew = CharPos[1] - CharPos[0]; in load()
332 CharPos['|' - START_CHAR] + in load()
339 CharPos['|' - START_CHAR] + in load()
350 CharPos['|' - START_CHAR] + in load()
378 this->CharPos[ofs + 1] - in PutString()
379 this->CharPos[ofs]; in PutString()
[all …]

12345678