summaryrefslogtreecommitdiff
path: root/gmod/on_screen_size_changed.cpp
blob: 7b337626aa8112c0089588ae19ce4b61a4ccf0c9 (plain)
1
2
3
4
5
6
7
8
9
#include "hooks.hpp"

void __fastcall hooks::on_screen_size_changed( void* ecx_, void* edx_, int old_w, int old_h ) {
	static auto old_fn = g_csgo.m_surface->get_old_function< decltype( &on_screen_size_changed ) >( 116 );

	old_fn( ecx_, nullptr, old_w, old_h );

	g_fonts.initialize( );
}