mirror of https://github.com/nothings/stb-imv
fix license, add new secret feature
This commit is contained in:
parent
eb8babe4db
commit
1f9416227c
13
imv.c
13
imv.c
|
@ -11,7 +11,7 @@
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License star
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
@ -2432,6 +2432,17 @@ int WINAPI MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
if (cur) frame(cur);
|
if (cur) frame(cur);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'M' | MY_CTRL: {
|
||||||
|
FILE *f = fopen("c:/imv(stb)_marked.txt", "a");
|
||||||
|
if (f) {
|
||||||
|
char buffer[1024];
|
||||||
|
stb_fullpath(buffer, 1024, source_c->filename);
|
||||||
|
fprintf(f, "%s\n", buffer);
|
||||||
|
fclose(f);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 'C' | MY_CTRL: {
|
case 'C' | MY_CTRL: {
|
||||||
HGLOBAL hMem;
|
HGLOBAL hMem;
|
||||||
char buffer[1024], *t;
|
char buffer[1024], *t;
|
||||||
|
|
Loading…
Reference in New Issue