mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53:40 +00:00
[client] added missing lg-fonts.c to the repo
This commit is contained in:
parent
ab98c87e7c
commit
1beeac545d
31
client/lg-fonts.c
Normal file
31
client/lg-fonts.c
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
Looking Glass - KVM FrameRelay (KVMFR) Client
|
||||
Copyright (C) 2017 Geoffrey McRae <geoff@hostfission.com>
|
||||
https://looking-glass.hostfission.com
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
Foundation; either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "lg-fonts.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
extern const LG_Font LGF_SDL;
|
||||
|
||||
const LG_Font * LG_Fonts[] =
|
||||
{
|
||||
&LGF_SDL,
|
||||
NULL // end of array sentinal
|
||||
};
|
||||
|
||||
#define LG_FONT_COUNT ((sizeof(LG_Fonts) / sizeof(LG_Font *)) - 1)
|
@ -188,20 +188,16 @@ uniform sampler2D sampler1;\
|
||||
void main()\
|
||||
{\
|
||||
highp vec4 tmp = texture(sampler1, uv);\
|
||||
if (tmp.a == 0.0) \
|
||||
{ \
|
||||
color.r = 0.0;\
|
||||
color.g = 0.0;\
|
||||
color.b = 1.0;\
|
||||
color.a = 0.5;\
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
color.r = tmp.b;\
|
||||
color.g = tmp.g;\
|
||||
color.b = tmp.r;\
|
||||
color.a = tmp.a;\
|
||||
} \
|
||||
color.r = tmp.b; \
|
||||
color.g = tmp.g; \
|
||||
color.b = tmp.r; \
|
||||
color.a = tmp.a; \
|
||||
if (color.a == 0.0) \
|
||||
{\
|
||||
color.a = 0.5; \
|
||||
color.r = 0.0; \
|
||||
color.g = 0.0; \
|
||||
}\
|
||||
}\
|
||||
";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user