mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
plugin_hack loose ends
svn path=/trunk/netsurf/; revision=12464
This commit is contained in:
parent
861137d3b2
commit
b5d8f9b25e
@ -301,6 +301,7 @@ SaveAs:Speichern als...
|
|||||||
SaveIFF:Speichern als IFF...
|
SaveIFF:Speichern als IFF...
|
||||||
ObjShow:Zeige Objekt
|
ObjShow:Zeige Objekt
|
||||||
SelectFile:Datei auswählen...
|
SelectFile:Datei auswählen...
|
||||||
|
ExternalApp:Open in external application
|
||||||
|
|
||||||
# Treeview interface tokens
|
# Treeview interface tokens
|
||||||
# =========================
|
# =========================
|
||||||
|
@ -303,6 +303,7 @@ SaveAs:Save as...
|
|||||||
SaveIFF:Save as IFF...
|
SaveIFF:Save as IFF...
|
||||||
ObjShow:Show object
|
ObjShow:Show object
|
||||||
SelectFile:Select file...
|
SelectFile:Select file...
|
||||||
|
ExternalApp:Open in external application
|
||||||
|
|
||||||
# Treeview interface tokens
|
# Treeview interface tokens
|
||||||
# =========================
|
# =========================
|
||||||
|
@ -301,6 +301,7 @@ SaveAs:Save as...
|
|||||||
SaveIFF:Save as IFF...
|
SaveIFF:Save as IFF...
|
||||||
ObjShow:Show object
|
ObjShow:Show object
|
||||||
SelectFile:Select file...
|
SelectFile:Select file...
|
||||||
|
ExternalApp:Open in external application
|
||||||
|
|
||||||
# Treeview interface tokens
|
# Treeview interface tokens
|
||||||
# =========================
|
# =========================
|
||||||
|
@ -305,6 +305,7 @@ SaveAs:Salva come...
|
|||||||
SaveIFF:Salva come IFF...
|
SaveIFF:Salva come IFF...
|
||||||
ObjShow:Mostra oggetto
|
ObjShow:Mostra oggetto
|
||||||
SelectFile:Seleziona file...
|
SelectFile:Seleziona file...
|
||||||
|
ExternalApp:Open in external application
|
||||||
|
|
||||||
# Treeview interface tokens
|
# Treeview interface tokens
|
||||||
# =========================
|
# =========================
|
||||||
|
@ -301,6 +301,7 @@ SaveAs:Save as...
|
|||||||
SaveIFF:Save as IFF...
|
SaveIFF:Save as IFF...
|
||||||
ObjShow:Show object
|
ObjShow:Show object
|
||||||
SelectFile:Select file...
|
SelectFile:Select file...
|
||||||
|
ExternalApp:Open in external application
|
||||||
|
|
||||||
# Treeview interface tokens
|
# Treeview interface tokens
|
||||||
# =========================
|
# =========================
|
||||||
|
@ -80,7 +80,7 @@ nserror amiga_plugin_hack_init(void)
|
|||||||
|
|
||||||
if(node)
|
if(node)
|
||||||
{
|
{
|
||||||
printf("plugin_hack registered %s\n",lwc_string_data(type));
|
LOG(("plugin_hack registered %s\n",lwc_string_data(type)));
|
||||||
|
|
||||||
error = content_factory_register_handler(type,
|
error = content_factory_register_handler(type,
|
||||||
&amiga_plugin_hack_content_handler);
|
&amiga_plugin_hack_content_handler);
|
||||||
@ -149,11 +149,16 @@ bool amiga_plugin_hack_redraw(struct content *c, int x, int y,
|
|||||||
float scale, colour background_colour,
|
float scale, colour background_colour,
|
||||||
bool repeat_x, bool repeat_y)
|
bool repeat_x, bool repeat_y)
|
||||||
{
|
{
|
||||||
static plot_style_t pstyle;
|
plot_style_t pstyle = {
|
||||||
|
.fill_type = PLOT_OP_TYPE_SOLID,
|
||||||
|
.fill_colour = 0xffffff,
|
||||||
|
.stroke_colour = 0x000000,
|
||||||
|
.stroke_width = 1,
|
||||||
|
};
|
||||||
|
|
||||||
LOG(("amiga_plugin_hack_redraw"));
|
LOG(("amiga_plugin_hack_redraw"));
|
||||||
|
|
||||||
plot.rectangle(x, y, x + width, y + height, plot_style_fill_red);
|
plot.rectangle(x, y, x + width, y + height, &pstyle);
|
||||||
return plot.text(x, y+20, lwc_string_data(content__get_mime_type(c)),
|
return plot.text(x, y+20, lwc_string_data(content__get_mime_type(c)),
|
||||||
lwc_string_length(content__get_mime_type(c)), plot_style_font);
|
lwc_string_length(content__get_mime_type(c)), plot_style_font);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user