Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
00d5d77d
Commit
00d5d77d
authored
Apr 29, 2000
by
Lionel Ulmer
Committed by
Alexandre Julliard
Apr 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added thread-safety protection to XListPixmapFormats
- moved pixmap / image format matching ERRs to WARNs
parent
f1a25321
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
x11.c
dlls/ddraw/ddraw/x11.c
+5
-5
ts_xlib.h
include/ts_xlib.h
+1
-0
X11_calls
tsx11/X11_calls
+1
-0
ts_xlib.c
tsx11/ts_xlib.c
+11
-0
No files found.
dlls/ddraw/ddraw/x11.c
View file @
00d5d77d
...
...
@@ -49,7 +49,7 @@ int _common_depth_to_pixelformat(
int
index
=
-
2
;
vi
=
TSXGetVisualInfo
(
display
,
VisualNoMask
,
&
vt
,
&
nvisuals
);
pf
=
XListPixmapFormats
(
display
,
&
npixmap
);
pf
=
TS
XListPixmapFormats
(
display
,
&
npixmap
);
for
(
i
=
0
;
i
<
npixmap
;
i
++
)
{
if
(
pf
[
i
].
depth
==
depth
)
{
...
...
@@ -83,7 +83,7 @@ int _common_depth_to_pixelformat(
goto
clean_up_and_exit
;
}
}
ERR
(
"No visual corresponding to pixmap format !
\n
"
);
WARN
(
"No visual corresponding to pixmap format !
\n
"
);
}
}
...
...
@@ -694,7 +694,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_EnumDisplayModes(
maxHeight
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
);
vi
=
TSXGetVisualInfo
(
display
,
VisualNoMask
,
&
vt
,
&
nvisuals
);
pf
=
XListPixmapFormats
(
display
,
&
npixmap
);
pf
=
TS
XListPixmapFormats
(
display
,
&
npixmap
);
i
=
0
;
emu
=
0
;
...
...
@@ -756,7 +756,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_EnumDisplayModes(
}
}
if
(
j
==
nvisuals
)
ERR
(
"Did not find visual corresponding the the pixmap format !
\n
"
);
WARN
(
"Did not find visual corresponding the the pixmap format !
\n
"
);
}
}
i
++
;
...
...
@@ -799,7 +799,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_EnumDisplayModes(
}
if
(
send_mode
==
0
)
ERR
(
"No visual corresponding to pixmap format !
\n
"
);
WARN
(
"No visual corresponding to pixmap format !
\n
"
);
}
}
}
...
...
include/ts_xlib.h
View file @
00d5d77d
...
...
@@ -38,6 +38,7 @@ extern KeySym TSXLookupKeysym(XKeyEvent*, int);
extern
KeySym
*
TSXGetKeyboardMapping
(
Display
*
,
unsigned
int
,
int
,
int
*
);
extern
char
*
TSXResourceManagerString
(
Display
*
);
extern
int
TSXInitThreads
(
void
);
extern
XPixmapFormatValues
*
TSXListPixmapFormats
(
Display
*
,
int
*
);
extern
int
*
TSXListDepths
(
Display
*
,
int
,
int
*
);
extern
int
TSXReconfigureWMWindow
(
Display
*
,
Window
,
int
,
unsigned
int
,
XWindowChanges
*
);
extern
int
TSXSetWMProtocols
(
Display
*
,
Window
,
Atom
*
,
int
);
...
...
tsx11/X11_calls
View file @
00d5d77d
...
...
@@ -91,6 +91,7 @@ XKeysymToKeycode
XKeysymToString
XListDepths
XListFonts
XListPixmapFormats
XLoadQueryFont
XLookupKeysym
XLookupString
...
...
tsx11/ts_xlib.c
View file @
00d5d77d
...
...
@@ -277,6 +277,17 @@ int TSXInitThreads(void)
return
r
;
}
XPixmapFormatValues
*
TSXListPixmapFormats
(
Display
*
a0
,
int
*
a1
)
{
XPixmapFormatValues
*
r
;
TRACE
(
"Call XListPixmapFormats
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XListPixmapFormats
(
a0
,
a1
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XListPixmapFormats
\n
"
);
return
r
;
}
int
*
TSXListDepths
(
Display
*
a0
,
int
a1
,
int
*
a2
)
{
int
*
r
;
...
...
Write
Preview
Markdown
is supported
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