mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2025-02-25 14:04:50 +01:00
Added additional notes for colormap patch and proper naming of value.
This commit is contained in:
parent
e75e05ea32
commit
9f82f28fc1
@ -78,11 +78,14 @@ Window XCreateWindow(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (patch_gfx_initialized) {
|
if (patch_gfx_initialized) {
|
||||||
|
// During early Exceed-Era code, CWColorMap was not included as a valuemask for creation of a window.
|
||||||
if (valuemask == 0x80A) {
|
// Eventually, this was brought back, but it's suspected that NVIDIA cards, drivers at the time, or
|
||||||
log_info("Patching to enable usage of non nvidia cards.");
|
// perhaps even a combination of that and X11 supported querying the gpu itself for a colormap.
|
||||||
/* enables usage of non nvidia cards and newer nvidia models */
|
// Either way, this no longer works consistently and we need to account for that.
|
||||||
valuemask = 0x280A;
|
if (valuemask & CWColormap == 0) {
|
||||||
|
log_info("Adding CWColorMap to ValueMask for Non-NVIDIA Cards.");
|
||||||
|
/* enables usage of nvidia cards where hardware colormaps are not available or supported */
|
||||||
|
valuemask |= CWColormap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user