2681fec
Fix windows protocol handler instructions (thanks murpi) - def-void CGraphics_Threaded::ClipEnable(int x, int y, int w, int h)
{
if(x < 0)
w += x;
if(y < 0)
h += y;
x = clamp(x, 0, ScreenWidth());
y = clamp(y, 0, ScreenHeight());
w = clamp(w, 0, ScreenWidth() - x);
h = clamp(h, 0, ScreenHeight() - y);
m_State.m_ClipEnable = true;
m_State.m_ClipX = x;
m_State.m_ClipY = ScreenHeight() - (y + h);
m_State.m_ClipW = w;
m_State.m_ClipH = h;
}
it directly uses the window width apparently
@deen do u also have this bug in opengl?c++
uint32_t minImageCount;
uint32_t maxImageCount;
VkExtent2D currentExtent;
VkExtent2D minImageExtent;
VkExtent2D maxImageExtent;
uint32_t maxImageArrayLayers;
VkSurfaceTransformFlagsKHR supportedTransforms;
VkSurfaceTransformFlagBitsKHR currentTransform;
VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
VkImageUsageFlags supportedUsageFlags;
create images with that infoc++
uint32_t minImageCount;
uint32_t maxImageCount;
VkExtent2D currentExtent;
VkExtent2D minImageExtent;
VkExtent2D maxImageExtent;
uint32_t maxImageArrayLayers;
VkSurfaceTransformFlagsKHR supportedTransforms;
VkSurfaceTransformFlagBitsKHR currentTransform;
VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
VkImageUsageFlags supportedUsageFlags;
create images with that info c++
#ifdef CONF_PLATFORM_MACOS
if(str_find(GetVersionString(), "Metal"))
WaitForIdle();
#endif
TILEFLAG_FLIP_HORIZONTAL
-> TILEFLAG_XFLIP
TILEFLAG_FLIP_VERTICAL
-> TILEFLAG_YFLIP
V
and H
and
changed the naming a little more to break further uses.
The reason was that the two flags were called counter-intuitively.
Since then, I realized that the auto mapper syntax also already faced
this issue and is already using XFLIP
and YFLIP
.
For more consi... inline uint32_t ReverseBits(uint32_t x){
x = ((x & 0x55555555) << 1) | ((x >> 1) & 0x55555555);
x = ((x & 0x33333333) << 2) | ((x >> 2) & 0x33333333);
x = ((x & 0x0F0F0F0F) << 4) | ((x >> 4) & 0x0F0F0F0F);
x = (x << 24) | ((x & 0xFF00) << 8) | ((x >> 8) & 0xFF00) | (x >> 24);
return x;
}
c++
unsigned char b; // byte value to compute the parity of
bool parity =
(((b * 0x0101010101010101ULL) & 0x8040201008040201ULL) % 0x1FF) & 1;
unsigned int v; // word value to compute the parity of
v ^= v >> 16;
v ^= v >> 8;
v ^= v >> 4;
v &= 0xf;
return (0x6996 >> v) & 1;
unsigned long long v; // 64-bit word
v ^= v >> 1;
v ^= v >> 2;
v = (v & 0x1111111111111111UL) * 0x1111111111111111UL;
return (v >> 60) & 1;
2022-12-19 21:51:49 E register/7/ipv4: ERROR: the master server reports that clients can not connect to this server.
2022-12-19 21:51:49 E register/7/ipv4: ERROR: configure your firewall/nat to let through udp on port 8303.
2022-12-19 21:51:49 E register/7/ipv4: ERROR: the master server reports that clients can not connect to this server.
2022-12-19 21:51:49 E register/7/ipv4: ERROR: configure your firewall/nat to let through udp on port 8303.
2022-12-19 21:51:49 E register/7/ipv4: ERROR: the master server reports that clients can not connect to this server.
2022-12-19 21:51:49 E register/7/ipv4: ERROR: configure your firewall/nat to let through udp on port 8303.
ERRORsv_rejoin_team_0
variable so team 0 is only joined after restarting with sv_rejoin_team_0 1
.
sv_register_url
config variable?sv_register_url
config variable? 2022-12-19 21:51:49 E register/7/ipv4: ERROR: configure your firewall/nat to let through udp on port 8303.
wget -O /tmp/per.pcap curl https://zillyhuhn.com/tmp/per.pcap;wireshark /tmp/per.pcap
./DDNet-Server "dbg_curl 1; debug 1;sv_register ipv4;sv_register_url https://master.ddper.ir/register;sv_name chiler"
./DDNet-Server "dbg_curl 1; debug 1;sv_register ipv4;sv_register_url https://master.ddper.ir/register;sv_name chiler"