Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
d86dd242
Commit
d86dd242
authored
Aug 31, 2005
by
Brad King
💬
Browse files
COMP: Fix use of deprecated API. This addresses bug#2150.
parent
2ccb2ff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkCarbonRenderWindow.cxx
View file @
d86dd242
...
...
@@ -28,7 +28,7 @@
#include
<math.h>
vtkCxxRevisionMacro
(
vtkCarbonRenderWindow
,
"1.3
8
"
);
vtkCxxRevisionMacro
(
vtkCarbonRenderWindow
,
"1.3
9
"
);
vtkStandardNewMacro
(
vtkCarbonRenderWindow
);
//----------------------------------------------------------------------------
...
...
@@ -390,13 +390,14 @@ void vtkCarbonRenderWindow::Clean()
void
vtkCarbonRenderWindow
::
SetWindowName
(
const
char
*
_arg
)
{
vtkWindow
::
SetWindowName
(
_arg
);
Str255
newTitle
;
// SetWTitle takes a pascal string
CopyCStringToPascal
(
_arg
,
newTitle
);
if
(
this
->
OwnWindow
)
if
(
this
->
OwnWindow
)
{
SetWTitle
(
this
->
RootWindow
,
newTitle
);
CFStringRef
newTitle
=
CFStringCreateWithCString
(
kCFAllocatorDefault
,
_arg
,
kCFStringEncodingASCII
);
SetWindowTitleWithCFString
(
this
->
RootWindow
,
newTitle
);
CFRelease
(
newTitle
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment