(360) Move font files
This commit is contained in:
parent
1c495f1f94
commit
7b84d5c3d7
|
@ -667,19 +667,19 @@ static void xdk360_video_font_draw_text(xdk360_video_font_t * font,
|
||||||
pVertex[0] = X1;
|
pVertex[0] = X1;
|
||||||
pVertex[1] = Y1;
|
pVertex[1] = Y1;
|
||||||
((volatile unsigned long *)pVertex)[2] = (tu1<<16)|tv1; // Merged using big endian rules
|
((volatile unsigned long *)pVertex)[2] = (tu1<<16)|tv1; // Merged using big endian rules
|
||||||
((volatile unsigned long *)pVertex)[3] = 0;
|
pVertex[3] = 0;
|
||||||
pVertex[4] = X2;
|
pVertex[4] = X2;
|
||||||
pVertex[5] = Y2;
|
pVertex[5] = Y2;
|
||||||
((volatile unsigned long *)pVertex)[6] = (tu2<<16)|tv1; // Merged using big endian rules
|
((volatile unsigned long *)pVertex)[6] = (tu2<<16)|tv1; // Merged using big endian rules
|
||||||
((volatile unsigned long *)pVertex)[7] = 0;
|
pVertex[7] = 0;
|
||||||
pVertex[8] = X3;
|
pVertex[8] = X3;
|
||||||
pVertex[9] = Y3;
|
pVertex[9] = Y3;
|
||||||
((volatile unsigned long *)pVertex)[10] = (tu2<<16)|tv2; // Merged using big endian rules
|
((volatile unsigned long *)pVertex)[10] = (tu2<<16)|tv2; // Merged using big endian rules
|
||||||
((volatile unsigned long *)pVertex)[11] = 0;
|
pVertex[11] = 0;
|
||||||
pVertex[12] = X4;
|
pVertex[12] = X4;
|
||||||
pVertex[13] = Y4;
|
pVertex[13] = Y4;
|
||||||
((volatile unsigned long *)pVertex)[14] = (tu1<<16)|tv2; // Merged using big endian rules
|
((volatile unsigned long *)pVertex)[14] = (tu1<<16)|tv2; // Merged using big endian rules
|
||||||
((volatile unsigned long *)pVertex)[15] = 0;
|
pVertex[15] = 0;
|
||||||
pVertex+=16;
|
pVertex+=16;
|
||||||
|
|
||||||
dwNumChars--;
|
dwNumChars--;
|
||||||
|
@ -689,23 +689,10 @@ static void xdk360_video_font_draw_text(xdk360_video_font_t * font,
|
||||||
// add some dummy verts for any skipped characters (like newlines, etc.)
|
// add some dummy verts for any skipped characters (like newlines, etc.)
|
||||||
while( dwNumChars )
|
while( dwNumChars )
|
||||||
{
|
{
|
||||||
pVertex[0] = 0;
|
for(int i = 0; i < 16; i++)
|
||||||
pVertex[1] = 0;
|
pVertex[i] = 0;
|
||||||
pVertex[2] = 0;
|
|
||||||
pVertex[3] = 0;
|
pVertex += 16;
|
||||||
pVertex[4] = 0;
|
|
||||||
pVertex[5] = 0;
|
|
||||||
pVertex[6] = 0;
|
|
||||||
pVertex[7] = 0;
|
|
||||||
pVertex[8] = 0;
|
|
||||||
pVertex[9] = 0;
|
|
||||||
pVertex[10] = 0;
|
|
||||||
pVertex[11] = 0;
|
|
||||||
pVertex[12] = 0;
|
|
||||||
pVertex[13] = 0;
|
|
||||||
pVertex[14] = 0;
|
|
||||||
pVertex[15] = 0;
|
|
||||||
pVertex+=16;
|
|
||||||
dwNumChars--;
|
dwNumChars--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#define _XDK360_VIDEO_H
|
#define _XDK360_VIDEO_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "fonts.h"
|
#include "../gfx/fonts/xdk360_fonts.h"
|
||||||
|
|
||||||
#define DFONT_MAX 4096
|
#define DFONT_MAX 4096
|
||||||
#define PRIM_FVF (D3DFVF_XYZRHW | D3DFVF_TEX1)
|
#define PRIM_FVF (D3DFVF_XYZRHW | D3DFVF_TEX1)
|
||||||
|
|
|
@ -101,7 +101,7 @@ FONTS
|
||||||
#if defined(__CELLOS_LV2__)
|
#if defined(__CELLOS_LV2__)
|
||||||
#include "../../gfx/fonts/ps3_libdbgfont.c"
|
#include "../../gfx/fonts/ps3_libdbgfont.c"
|
||||||
#elif defined(_XBOX)
|
#elif defined(_XBOX)
|
||||||
#include "../../360/fonts.cpp"
|
#include "../../gfx/fonts/xdk360_fonts.cpp"
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
#include "../../gfx/fonts/fonts.c"
|
#include "../../gfx/fonts/fonts.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,9 +16,8 @@
|
||||||
|
|
||||||
#define NONET
|
#define NONET
|
||||||
#include <xtl.h>
|
#include <xtl.h>
|
||||||
#include "xdk360_video.h"
|
#include "xdk360_fonts.h"
|
||||||
#include "fonts.h"
|
#include "../../general.h"
|
||||||
#include "../general.h"
|
|
||||||
|
|
||||||
video_console_t video_console;
|
video_console_t video_console;
|
||||||
xdk360_video_font_t m_Font;
|
xdk360_video_font_t m_Font;
|
Loading…
Reference in New Issue