mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Fix clipboard copy in C client
This commit is contained in:
parent
1b5276bae5
commit
7f2b24b560
@ -336,9 +336,4 @@ namespace ClassicalSharp {
|
|||||||
edgeLevel = Math.Max(0, game.World.Env.EdgeHeight);
|
edgeLevel = Math.Max(0, game.World.Env.EdgeHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct ChunkPartInfo {
|
|
||||||
public int VbId, VerticesCount, SpriteCount;
|
|
||||||
public ushort LeftCount, RightCount, FrontCount, BackCount, BottomCount, TopCount;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -10,6 +10,11 @@ using BlockID = System.UInt16;
|
|||||||
|
|
||||||
namespace ClassicalSharp.Renderers {
|
namespace ClassicalSharp.Renderers {
|
||||||
|
|
||||||
|
public struct ChunkPartInfo {
|
||||||
|
public int VbId, VerticesCount, SpriteCount;
|
||||||
|
public ushort LeftCount, RightCount, FrontCount, BackCount, BottomCount, TopCount;
|
||||||
|
}
|
||||||
|
|
||||||
public class ChunkInfo {
|
public class ChunkInfo {
|
||||||
|
|
||||||
public ushort CentreX, CentreY, CentreZ;
|
public ushort CentreX, CentreY, CentreZ;
|
||||||
|
@ -499,7 +499,6 @@ void Window_GetClipboardText(STRING_TRANSIENT String* value) {
|
|||||||
void Window_SetClipboardText(STRING_PURE String* value) {
|
void Window_SetClipboardText(STRING_PURE String* value) {
|
||||||
/* retry up to 10 times*/
|
/* retry up to 10 times*/
|
||||||
Int32 i;
|
Int32 i;
|
||||||
value->length = 0;
|
|
||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
if (!OpenClipboard(win_Handle)) {
|
if (!OpenClipboard(win_Handle)) {
|
||||||
Platform_ThreadSleep(100);
|
Platform_ThreadSleep(100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user