mirror of https://gitlab.com/nakst/essence
misc
This commit is contained in:
parent
acee390166
commit
ee115fabd8
|
@ -22,8 +22,6 @@
|
|||
#include <shared/stb_image.h>
|
||||
#endif
|
||||
|
||||
#include <emmintrin.h>
|
||||
|
||||
#define SHARED_COMMON_WANT_ALL
|
||||
#define SHARED_MATH_WANT_ALL
|
||||
#include <shared/ini.h>
|
||||
|
@ -178,8 +176,6 @@ void FileStoreCloseHandle(EsFileStore *fileStore);
|
|||
EsError NodeOpen(const char *path, size_t pathBytes, uint32_t flags, _EsNodeInformation *node);
|
||||
void ApplicationProcessTerminated(EsObjectID pid);
|
||||
|
||||
#include "syscall.cpp"
|
||||
|
||||
struct ProcessMessageTiming {
|
||||
double startLogic, endLogic;
|
||||
double startLayout, endLayout;
|
||||
|
@ -252,6 +248,7 @@ struct APIInstance {
|
|||
#define CHARACTER_IMAGE (3) // 32 bits per pixel, ARGB.
|
||||
#define CHARACTER_RECOLOR (4) // 32 bits per pixel, AXXX.
|
||||
|
||||
#include "syscall.cpp"
|
||||
#include "renderer.cpp"
|
||||
#include "theme.cpp"
|
||||
#define TEXT_RENDERER
|
||||
|
|
|
@ -3376,7 +3376,6 @@ void TextboxEnsureCaretVisibleActionCallback(EsElement *element, EsGeneric conte
|
|||
}
|
||||
|
||||
if (textbox->scroll.position[1] != scrollY) {
|
||||
EsPrint(" new scroll %d\n", scrollY);
|
||||
textbox->scroll.SetY(scrollY);
|
||||
} else {
|
||||
break;
|
||||
|
|
|
@ -534,6 +534,9 @@ void Run(int emulator, int log, int debug) {
|
|||
cpuCores, audioFlags2, logFlags, usbFlags, usbFlags2, secondaryDriveFlags, biosFlags, serialFlags)) {
|
||||
printf("Unable to start Qemu. To manually run the system, use the drive image located at \"bin/drive\".\n");
|
||||
}
|
||||
|
||||
// Watch serial file as it is being written to:
|
||||
// tail -f bin/Logs/qemu_serial1.txt
|
||||
} break;
|
||||
|
||||
case EMULATOR_BOCHS: {
|
||||
|
|
|
@ -2480,8 +2480,6 @@ void UICodeFocusLine(UICode *code, int index) {
|
|||
}
|
||||
|
||||
void UICodeInsertContent(UICode *code, const char *content, ptrdiff_t byteCount, bool replace) {
|
||||
UIFont *previousFont = UIFontActivate(code->font);
|
||||
|
||||
if (byteCount == -1) {
|
||||
byteCount = _UIStringLength(content);
|
||||
}
|
||||
|
@ -2505,6 +2503,8 @@ void UICodeInsertContent(UICode *code, const char *content, ptrdiff_t byteCount,
|
|||
return;
|
||||
}
|
||||
|
||||
UIFont *previousFont = UIFontActivate(code->font);
|
||||
|
||||
int lineCount = content[byteCount - 1] != '\n';
|
||||
|
||||
for (int i = 0; i < byteCount; i++) {
|
||||
|
|
Loading…
Reference in New Issue