mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Removed MusicMod, it's hacky, it's not maintained and it seems it didn't compile for a while now.
Also with the advance of LLE sound we won't really need it. If someone disagree feel free to make it compile and recommit :-) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3176 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
83
Externals/MusicMod/Player/Src/Font.cpp
vendored
83
Externals/MusicMod/Player/Src/Font.cpp
vendored
@ -1,83 +0,0 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright <20> 2005 Sebastian Pipping <webmaster@hartwork.org>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "Font.h"
|
||||
|
||||
|
||||
|
||||
HFONT hFont = NULL;
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Font::Create()
|
||||
{
|
||||
hFont = CreateFont(
|
||||
-11, // int nHeight
|
||||
0, // int nWidth
|
||||
0, // int nEscapement
|
||||
0, // int nOrientation
|
||||
FW_REGULAR, // int fnWeight
|
||||
FALSE, // DWORD fdwItalic
|
||||
FALSE, // DWORD fdwUnderline
|
||||
FALSE, // DWORD fdwStrikeOut
|
||||
ANSI_CHARSET, // DWORD fdwCharSet
|
||||
OUT_TT_PRECIS, // DWORD fdwOutputPrecision
|
||||
CLIP_DEFAULT_PRECIS, // DWORD fdwClipPrecision
|
||||
ANTIALIASED_QUALITY, // DWORD fdwQuality
|
||||
FF_DONTCARE | DEFAULT_PITCH, // DWORD fdwPitchAndFamily
|
||||
TEXT( "Verdana" ) // LPCTSTR lpszFace
|
||||
);
|
||||
|
||||
return ( hFont != NULL );
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Font::Destroy()
|
||||
{
|
||||
if( !hFont ) return false;
|
||||
DeleteObject( hFont );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Font::Apply( HWND hwnd )
|
||||
{
|
||||
if( !hFont ) return false;
|
||||
SendMessage(
|
||||
hwnd,
|
||||
WM_SETFONT,
|
||||
( WPARAM )hFont,
|
||||
FALSE
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
HFONT Font::Get()
|
||||
{
|
||||
return hFont;
|
||||
}
|
Reference in New Issue
Block a user