29 #include "../../idlib/precompiled.h"
39 static char THIS_FILE[] = __FILE__;
69 CDialog::DoDataExchange(pDX);
118 Patch_NaturalizeSelected(
true);
124 Patch_FitTexturing();
130 Patch_NaturalizeSelected();
169 NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
176 CDialog::OnInitDialog();
196 m_Patch = SinglePatchSelected();
202 for (i = 0; i <
m_Patch->height; i++)
209 for (i = 0; i <
m_Patch->width; i++)
226 if (g_PatchDialog.GetSafeHwnd() ==
NULL)
230 LONG lSize =
sizeof(rct);
233 g_PatchDialog.SetWindowPos(
NULL, rct.left, rct.top, 0,0, SWP_NOSIZE);
236 g_PatchDialog.ShowWindow(SW_SHOW);
242 if (g_PatchDialog.GetSafeHwnd() !=
NULL)
257 CDialog::OnDestroy();
310 td.scale[0] = td.scale[1] = 0.0;
311 td.shift[0] = td.shift[1] = 0.0;
354 Patch_SetTextureInfo(&td);
void WINAPI Sys_UpdateWindows(int nBits)
void UpdateSpinners(bool bUp, int nID)
afx_msg void OnSelchangeComboCol()
CSpinButtonCtrl m_wndVShift
afx_msg void OnBtnPatchfit()
afx_msg void OnSelchangeComboRow()
CSpinButtonCtrl m_wndHShift
afx_msg void OnDeltaposSpin(NMHDR *pNMHDR, LRESULT *pResult)
bool LoadRegistryInfo(const char *pszName, void *pvBuf, long *plSize)
afx_msg void OnBtnPatchreset()
CSpinButtonCtrl m_wndVScale
CSpinButtonCtrl m_wndRotate
void UpdatePatchInspector()
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnBtnPatchnatural()
afx_msg void OnSelchangeComboType()
bool SaveRegistryInfo(const char *pszName, void *pvBuf, long lSize)
#define IDC_BTN_PATCHDETAILS
#define IDC_BTN_PATCHNATURAL
GLenum GLsizei GLsizei height
CSpinButtonCtrl m_wndHScale
GLdouble GLdouble GLdouble r
CPatchDialog g_PatchDialog
CPatchDialog(CWnd *pParent=NULL)
#define IDC_BTN_PATCHRESET
virtual BOOL OnInitDialog()