|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include "graphics_com_private.h"#include "graphics_private.h"#include <dttr_log.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
|
static |
Definition at line 40 of file com_directdraw7.c.
References ddraw7_createclipper(), DWORD, f, NULL, S_OK, and self.
Referenced by ddraw7_createclipper().
|
static |
|
static |
Definition at line 67 of file com_directdraw7.c.
References bpp, caps, desc, dttr_graphics_com_create_directdrawsurface7(), dttr_graphics_com_validate_directdrawsurface7(), dttr_graphics_set_logical_resolution(), DWORD, flags, NULL, S_OK, and self.
|
static |
Definition at line 12 of file com_directdraw7.c.
References ddraw7_d3d7, and dttr_graphics_com_create_direct3d7().
Referenced by ddraw7_queryinterface().
|
static |
Definition at line 20 of file com_directdraw7.c.
References ddraw7_get_direct3d(), S_OK, and self.
| DTTR_Graphics_COM_DirectDraw7 DWORD void void void *cb DTTR_Graphics_COM_DirectDraw7 void void *helCaps DTTR_COM_NOOP_HRESULT | ( | ddraw7_getdisplaymode | , |
| DTTR_Graphics_COM_DirectDraw7 * | self, | ||
| void * | desc ) |
References desc, DTTR_COM_NOOP_HRESULT, and self.
| DTTR_Graphics_COM_DirectDraw7 *self DTTR_COM_NOOP_HRESULT | ( | ddraw7_setcooperativelevel | , |
| DTTR_Graphics_COM_DirectDraw7 * | self, | ||
| HWND | hwnd, | ||
| DWORD | flags ) |
References DTTR_COM_NOOP_HRESULT, DWORD, flags, and self.
| DTTR_COM_NOOP_HRESULT | ( | ddraw7_startmodetest | , |
| DTTR_Graphics_COM_DirectDraw7 * | self, | ||
| void * | modes, | ||
| DWORD | n, | ||
| DWORD | f ) |
| DTTR_COM_NOOP_HRESULT | ( | ddraw7_waitforverticalblank | , |
| DTTR_Graphics_COM_DirectDraw7 * | self, | ||
| DWORD | f, | ||
| HANDLE | evt ) |
| DTTR_COM_STUB_SET | ( | ddraw7_duplicatesurface | , |
| void * | , | ||
| NULL | , | ||
| DTTR_Graphics_COM_DirectDraw7 * | self, | ||
| void * | src ) |
| DTTR_COM_STUB_SET | ( | ddraw7_getmonitorfrequency | , |
| DWORD | , | ||
| 60 | , | ||
| DTTR_Graphics_COM_DirectDraw7 * | self ) |
References DTTR_COM_STUB_SET, DWORD, and self.
| DTTR_COM_STUB_SET | ( | ddraw7_getsurfacefromdc | , |
| void * | , | ||
| NULL | , | ||
| DTTR_Graphics_COM_DirectDraw7 * | self, | ||
| HDC | dc ) |
| DTTR_Graphics_COM_DirectDraw7 * dttr_graphics_com_create_directdraw7 | ( | ) |
Definition at line 356 of file com_directdraw7.c.
References DTTR_LOG_DEBUG, DTTR_Graphics_COM_DirectDraw7_VT::QueryInterface, DTTR_Graphics_COM_DirectDraw7::vtbl, and vtbl.
Referenced by get_or_create_ddraw7().
| dttr_graphics_set_logical_resolution | ( | (int) | w, |
| (int) | h ) |
Referenced by ddraw7_createsurface().
Definition at line 232 of file com_directdraw7.c.
Referenced by ddraw7_createsurface(), ddrawsurface7_blt(), dttr_graphics_com_create_directdrawsurface7(), and dttr_graphics_com_validate_directdrawsurface7().
| void* caps |
Definition at line 269 of file com_directdraw7.c.
Referenced by ddraw7_createsurface(), and ddrawsurface7_getattachedsurface().
| DTTR_Graphics_COM_DirectDraw7 DWORD void void void *cb DTTR_Graphics_COM_DirectDraw7 void void *helCaps DWORD DWORD* codes |
Definition at line 190 of file com_directdraw7.c.
Definition at line 159 of file com_directdraw7.c.
|
static |
Definition at line 10 of file com_directdraw7.c.
Referenced by ddraw7_get_direct3d().
Definition at line 158 of file com_directdraw7.c.
Referenced by d3d7_createvertexbuffer(), d3d7_enum_devices(), ddraw7_createsurface(), ddrawsurface7_getsurfacedesc(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), dttr_mss_sdl_install_hooks(), DTTR_TestPE_CollectImports(), if(), if(), and install_mss_import_descriptor().
Definition at line 177 of file com_directdraw7.c.
| DWORD |
Definition at line 212 of file com_directdraw7.c.
Definition at line 157 of file com_directdraw7.c.
Referenced by d3d_device7_record_clear(), ddraw7_createclipper(), ddraw7_createpalette(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), DTTR_COM_NOOP_HRESULT(), and if().
Definition at line 271 of file com_directdraw7.c.
Referenced by aob_scan_with(), cleanup(), cleanup(), collect_and_upload_pending(), compute_exe_hash(), ddrawsurface7_release(), destroy_mod_context(), destroy_stream(), DTTR_Core_HookAttachFunction(), DTTR_Core_PatchGroupDestroy(), dttr_graphics_com_create_directdrawsurface7(), dttr_graphics_hooks_cleanup(), dttr_graphics_opengl_init(), DTTR_Loader_InjectSidecar(), dttr_mss_ail_open_stream(), dttr_test_pe_free_image(), function_link_create(), hook_chain_destroy(), hook_create(), kvec_t(), parse_aob_fail(), read_fixture_file(), render_sample_audio(), reset_video_buffer(), surface_texture_release(), upload_pending_textures_gl(), and upload_texture_data().
Definition at line 231 of file com_directdraw7.c.
Referenced by check_overlap(), create_msaa_fbo(), d3d_device7_set_viewport(), dttr_graphics_calc_mip_levels(), dttr_graphics_set_logical_resolution(), dttr_imgui_render_game_sdl3gpu(), khash_t(), present_video_frame_bgra(), queue_video_frame(), surface_convert_argb4444_to_bgra8888(), surface_convert_rgb565_to_bgra8888(), update_window_title(), and upload_texture_data().
Definition at line 233 of file com_directdraw7.c.
| void* id |
Definition at line 298 of file com_directdraw7.c.
Referenced by chain_log().
| DTTR_Graphics_COM_DirectDraw7 DWORD void void void *cb DTTR_Graphics_COM_DirectDraw7 void void *helCaps DWORD* num |
Definition at line 189 of file com_directdraw7.c.
| return S_OK |
Definition at line 257 of file com_directdraw7.c.
Definition at line 156 of file com_directdraw7.c.
Definition at line 270 of file com_directdraw7.c.
|
static |
Definition at line 323 of file com_directdraw7.c.
Definition at line 230 of file com_directdraw7.c.
Referenced by create_msaa_fbo(), d3d_device7_set_viewport(), dttr_graphics_calc_mip_levels(), dttr_graphics_set_logical_resolution(), dttr_imgui_render_game_sdl3gpu(), khash_t(), log_prologue_bytes(), queue_video_frame(), surface_convert_argb4444_to_bgra8888(), surface_convert_rgb565_to_bgra8888(), and update_window_title().