Skip to content

Commit

Permalink
win32 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Dec 9, 2023
1 parent 11a8751 commit 3fb98e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions include/apricot.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ typedef struct _PostMsg {
#define hash_create prima_hash_create
#define hash_destroy prima_hash_destroy
#define hash_fetch prima_hash_fetch
#define hash_fetch_key prima_hash_fetch_key
#define hash_delete prima_hash_delete
#define hash_store prima_hash_store
#define hash_count prima_hash_count
Expand Down Expand Up @@ -1536,9 +1537,6 @@ prima_svpv_utf8( const char *text, int is_utf8);
extern FILE*
prima_open_file( const char *text, Bool is_utf8, const char * mode);

extern UV
prima_utf8_uvchr(const char * text, unsigned int textlen, unsigned int charlen);

extern UV
prima_utf8_uvchr_end(const char * text, const char * end, unsigned int * charlen);

Expand Down
5 changes: 3 additions & 2 deletions win32/stock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1539,8 +1539,9 @@ apc_font_pick( Handle self, PFont source, PFont dest)
if ( dest != NULL ) {
Drawable_font_add( NULL_HANDLE, source, dest );
source = dest;
}
dest->size = round(dest->size);
} else
dest = source;
dest->size = (int)(dest->size + .5);
font_font2gp( dest, apc_gp_get_resolution(self), source->undef.height, self ? sys ps : 0);
return true;
}
Expand Down

0 comments on commit 3fb98e0

Please sign in to comment.