mirror of https://github.com/fltk/fltk
Use GetTempPath() under WIN32 for the clipboard file location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
4fb627c3d8
commit
7eae5f4f87
3
CHANGES
3
CHANGES
|
@ -25,6 +25,9 @@ CHANGES SINCE FLTK 1.0.10
|
||||||
- Fl::flush() now calls GdiFlush() under WIN32 to
|
- Fl::flush() now calls GdiFlush() under WIN32 to
|
||||||
ensure that all graphics are drawn.
|
ensure that all graphics are drawn.
|
||||||
|
|
||||||
|
- FLUID now uses GetTempPath() under WIN32 to determine
|
||||||
|
where to store the clipboard.
|
||||||
|
|
||||||
|
|
||||||
CHANGES SINCE FLTK 1.0.9
|
CHANGES SINCE FLTK 1.0.9
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// "$Id: fluid.cxx,v 1.15.2.11 2001/01/28 06:57:33 spitzak Exp $"
|
// "$Id: fluid.cxx,v 1.15.2.12 2001/02/01 17:30:28 easysw Exp $"
|
||||||
//
|
//
|
||||||
// FLUID main entry for the Fast Light Tool Kit (FLTK).
|
// FLUID main entry for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
|
@ -251,7 +251,15 @@ static int ipasteoffset;
|
||||||
|
|
||||||
static char* cutfname() {
|
static char* cutfname() {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
return "\\.fluid_cut_buffer";
|
static char name[MAX_PATH+16] = "";
|
||||||
|
|
||||||
|
if (!name[0]) {
|
||||||
|
if (!GetTempPath(sizeof(name), name)) strcpy(name,"\\"); // failure
|
||||||
|
|
||||||
|
strcat(name, ".fluidcutbuffer");
|
||||||
|
}
|
||||||
|
|
||||||
|
return name;
|
||||||
#else
|
#else
|
||||||
static char name[256] = "~/.fluid_cut_buffer";
|
static char name[256] = "~/.fluid_cut_buffer";
|
||||||
static char beenhere;
|
static char beenhere;
|
||||||
|
@ -465,5 +473,5 @@ int main(int argc,char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: fluid.cxx,v 1.15.2.11 2001/01/28 06:57:33 spitzak Exp $".
|
// End of "$Id: fluid.cxx,v 1.15.2.12 2001/02/01 17:30:28 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue